attempt portable in CI

This commit is contained in:
eyedeekay
2024-02-20 19:20:23 -05:00
parent 903da4bb7a
commit 240b54d280
2 changed files with 49 additions and 0 deletions

View File

@ -116,3 +116,12 @@ jobs:
with:
name: i2pbrowser-1.2.0-${{ github.sha }}.msi
path: ./i2pbrowser-1.2.0.msi
- name: build msi with Ant
run: |
ant windows-portable
bash -c 'ls *.zip'
- name: Upload Firefox Profile Portable Zip
uses: actions/upload-artifact@v4
with:
name: i2pbrowser-portable-${{ github.sha }}.zip
path: ./i2pbrowser-portable.zip

View File

@ -633,6 +633,46 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
</exec>
</target>
<target name="windows-portable" depends="jar">
<exec executable="jpackage" failonerror="true">
<arg value="--verbose"/>
<arg value="--type"/> <arg value="app-image"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser-portable"/>
<arg value="--icon"/> <arg value="src/icon.png"/>
<arg value="--app-version"/> <arg value="1.0.0"/>
<arg value="--input"/> <arg value="src/build"/>
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
</exec>
<copy file="LICENSE.md" todir="i2pbrowser-portable" overwrite="true"/>
<delete file="i2pbrowser-portable.zip"/>
<exec executable="zip" failonerror="true">
<arg value="-r"/>
<arg value="i2pbrowser-portable-1.0.0.zip"/>
<arg value="i2pbrowser-portable"/>
</exec>
</target>
<target name="windows-portable-release" depends="jar">
<exec executable="jpackage" failonerror="true">
<arg value="--verbose"/>
<arg value="--type"/> <arg value="app-image"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser-portable"/>
<arg value="--icon"/> <arg value="src/icon.png"/>
<arg value="--app-version"/> <arg value="${release.number}"/>
<arg value="--input"/> <arg value="src/build"/>
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
</exec>
<copy file="LICENSE.md" todir="i2pbrowser-portable" overwrite="true"/>
<delete file="i2pbrowser-portable.zip"/>
<exec executable="zip" failonerror="true">
<arg value="-r"/>
<arg value="i2pbrowser-portable-${release.number}.zip"/>
<arg value="i2pbrowser-portable"/>
</exec>
</target>
<target name="versionMd" depends="i2pFirefoxBaseProfile, i2pFirefoxUsabilityProfile, i2pChromiumBaseProfile, i2pChromiumUsabilityProfile">
<delete file="VERSION.md"></delete>