update launcher script to self-discover jar. add some build targets of convenience
Former-commit-id: fb30909e3a
Former-commit-id: 07f93beb2e49f297bd59f9f45c3da72daced4362
This commit is contained in:
@ -2,6 +2,7 @@ Mon, August 8
|
|||||||
-------------
|
-------------
|
||||||
|
|
||||||
- Add Chromium support. You heard me. Chromium support.
|
- Add Chromium support. You heard me. Chromium support.
|
||||||
|
- Update launcher script so it self-discovers the location of the script and uses that to find the bundled jar.
|
||||||
|
|
||||||
Sun, August 7
|
Sun, August 7
|
||||||
-------------
|
-------------
|
||||||
|
20
build.xml
20
build.xml
@ -8,6 +8,10 @@
|
|||||||
<ant dir="src" target="build" />
|
<ant dir="src" target="build" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" >
|
||||||
|
<ant dir="src" target="jar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="i2pFirefoxBaseProfileZip">
|
<target name="i2pFirefoxBaseProfileZip">
|
||||||
<exec executable="rm" failonerror="false" dir="src">
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
<arg value="-rf" />
|
<arg value="-rf" />
|
||||||
@ -32,6 +36,20 @@
|
|||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="freeZip" depends="jar">
|
||||||
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2pbrowser.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="src/build/i2pfirefox.jar"/>
|
||||||
|
<arg value="i2pbrowser.cmd"/>
|
||||||
|
<arg value="LICENSE.md"/>
|
||||||
|
<arg value="README.md"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="plugin" depends="war">
|
<target name="plugin" depends="war">
|
||||||
<delete>
|
<delete>
|
||||||
<!-- in installer but not update -->
|
<!-- in installer but not update -->
|
||||||
@ -40,7 +58,7 @@
|
|||||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||||
<!-- get version number -->
|
<!-- get version number -->
|
||||||
<buildnumber file="scripts/build.number" />
|
<buildnumber file="scripts/build.number" />
|
||||||
<property name="release.number" value="0.0.5" />
|
<property name="release.number" value="0.0.6" />
|
||||||
|
|
||||||
<!-- make the update xpi2p -->
|
<!-- make the update xpi2p -->
|
||||||
<!-- this contains everything except i2ptunnel.config -->
|
<!-- this contains everything except i2ptunnel.config -->
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
:; java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
@ -4,10 +4,9 @@ GITHUB_USER=eyedeekay
|
|||||||
GITHUB_REPO=i2p.plugins.firefox
|
GITHUB_REPO=i2p.plugins.firefox
|
||||||
GITHUB_NAME="Initial Release"
|
GITHUB_NAME="Initial Release"
|
||||||
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||||
GITHUB_TAG=0.0.5
|
GITHUB_TAG=0.0.6
|
||||||
ant distclean
|
ant distclean
|
||||||
cd src && \
|
ant jar freeZip
|
||||||
ant
|
|
||||||
github-release release --user "${GITHUB_USER}" \
|
github-release release --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--name "${GITHUB_NAME}" \
|
--name "${GITHUB_NAME}" \
|
||||||
@ -18,10 +17,8 @@ github-release upload --user "${GITHUB_USER}" \
|
|||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
--name "i2pfirefox.jar" \
|
--name "i2pfirefox.jar" \
|
||||||
--file "build/i2pfirefox.jar" \
|
--file "src/build/i2pfirefox.jar" \
|
||||||
--replace
|
--replace
|
||||||
cd ../
|
|
||||||
zip -r i2pfirefox.zip src/build/i2pfirefox.jar i2pbrowser.cmd LICENSE.md README.md
|
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
|
Reference in New Issue
Block a user