|
|
@ -14,7 +14,7 @@ rm -fr target/org.getmonero.i2p.zero.gui/classes
|
|
|
|
# compile the Main class that starts the I2P router and SAM listener
|
|
|
|
# compile the Main class that starts the I2P router and SAM listener
|
|
|
|
echo "*** Compiling Main class"
|
|
|
|
echo "*** Compiling Main class"
|
|
|
|
$JAVA_HOME/bin/javac --module-path import/lib -d target/org.getmonero.i2p.zero/classes $(find org.getmonero.i2p.zero/src -name '*.java')
|
|
|
|
$JAVA_HOME/bin/javac --module-path import/lib -d target/org.getmonero.i2p.zero/classes $(find org.getmonero.i2p.zero/src -name '*.java')
|
|
|
|
$JAVA_HOME/bin/javac --module-path import/lib:import/javafx-sdk-11.0.2/lib:target/org.getmonero.i2p.zero/classes -d target/org.getmonero.i2p.zero.gui/classes $(find org.getmonero.i2p.zero.gui/src -name '*.java')
|
|
|
|
$JAVA_HOME/bin/javac --module-path import/lib:import/javafx-sdks/linux/javafx-sdk-$JAVAFX_VERSION/lib:target/org.getmonero.i2p.zero/classes -d target/org.getmonero.i2p.zero.gui/classes $(find org.getmonero.i2p.zero.gui/src -name '*.java')
|
|
|
|
cp -r org.getmonero.i2p.zero.gui/src/* target/org.getmonero.i2p.zero.gui/classes
|
|
|
|
cp -r org.getmonero.i2p.zero.gui/src/* target/org.getmonero.i2p.zero.gui/classes
|
|
|
|
find target -type f -name '*.java' -delete
|
|
|
|
find target -type f -name '*.java' -delete
|
|
|
|
|
|
|
|
|
|
|
@ -40,24 +40,35 @@ for i in linux mac win; do
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
echo "Using JAVA_HOME_VARIANT: $JAVA_HOME_VARIANT"
|
|
|
|
echo "Using JAVA_HOME_VARIANT: $JAVA_HOME_VARIANT"
|
|
|
|
$JAVA_HOME/bin/jlink --module-path ${JAVA_HOME_VARIANT}/jmods:target/modules:target/org.getmonero.i2p.zero.jar --add-modules org.getmonero.i2p.zero --output dist/$i/router --strip-debug --compress 2 --no-header-files --no-man-pages
|
|
|
|
$JAVA_HOME/bin/jlink --module-path ${JAVA_HOME_VARIANT}/jmods:target/modules:target/org.getmonero.i2p.zero.jar --add-modules org.getmonero.i2p.zero --output dist/$i/router --strip-debug --compress 2 --no-header-files --no-man-pages
|
|
|
|
$JAVA_HOME/bin/jlink --module-path ${JAVA_HOME_VARIANT}/jmods:import/javafx-jmods/$i/javafx-jmods-11.0.2:target/modules:target/org.getmonero.i2p.zero.jar:target/org.getmonero.i2p.zero.gui.jar --add-modules org.getmonero.i2p.zero,org.getmonero.i2p.zero.gui,javafx.controls,javafx.fxml,java.desktop --output dist/$i-gui/router --strip-debug --compress 2 --no-header-files --no-man-pages
|
|
|
|
$JAVA_HOME/bin/jlink --module-path ${JAVA_HOME_VARIANT}/jmods:import/javafx-jmods/$i/javafx-jmods-${JAVAFX_VERSION}:target/modules:target/org.getmonero.i2p.zero.jar:target/org.getmonero.i2p.zero.gui.jar --add-modules org.getmonero.i2p.zero,org.getmonero.i2p.zero.gui,javafx.controls,javafx.fxml,java.desktop --output dist/$i-gui/router --strip-debug --compress 2 --no-header-files --no-man-pages
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp -R $basedir/resources/i2p-zero.app $basedir/dist/mac-gui/router/bin/
|
|
|
|
|
|
|
|
|
|
|
|
for i in linux mac linux-gui mac-gui; do
|
|
|
|
for i in linux mac linux-gui mac-gui; do
|
|
|
|
|
|
|
|
if [ $i = mac-gui ]; then
|
|
|
|
|
|
|
|
mac_root=$basedir/dist/$i/router/bin/i2p-zero.app/Contents/MacOS
|
|
|
|
|
|
|
|
cp $basedir/resources/tunnel-control.sh $mac_root/
|
|
|
|
|
|
|
|
mv $basedir/dist/$i/router/bin/java $mac_root/
|
|
|
|
|
|
|
|
mv $basedir/dist/$i/router/bin/jrunscript $mac_root/
|
|
|
|
|
|
|
|
mv $basedir/dist/$i/router/bin/keytool $mac_root/
|
|
|
|
|
|
|
|
else
|
|
|
|
cp $basedir/resources/launch.sh $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/launch.sh $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/tunnel-control.sh $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/tunnel-control.sh $basedir/dist/$i/router/bin/
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
for i in win win-gui; do
|
|
|
|
for i in win win-gui; do
|
|
|
|
cp $basedir/resources/launch.bat $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/launch.bat $basedir/dist/$i/router/bin/
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
for i in linux-gui mac-gui; do
|
|
|
|
for i in linux-gui; do
|
|
|
|
cp $basedir/resources/launch-gui.sh $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/launch-gui.sh $basedir/dist/$i/router/bin/
|
|
|
|
done
|
|
|
|
done
|
|
|
|
for i in win-gui; do
|
|
|
|
for i in win-gui; do
|
|
|
|
cp $basedir/resources/launch-gui.bat $basedir/dist/$i/router/bin/
|
|
|
|
cp $basedir/resources/launch-gui.bat $basedir/dist/$i/router/bin/
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for i in linux mac win linux-gui mac-gui win-gui; do cp -r $basedir/import/i2p.base $basedir/dist/$i/router/; done
|
|
|
|
for i in linux mac win linux-gui mac-gui win-gui; do cp -r $basedir/import/i2p.base $basedir/dist/$i/router/; done
|
|
|
|
for i in linux mac win linux-gui mac-gui win-gui; do mkdir -p $basedir/dist/$i/router/i2p.config; done
|
|
|
|
for i in linux mac win linux-gui mac-gui win-gui; do mkdir -p $basedir/dist/$i/router/i2p.config; done
|
|
|
|
|
|
|
|
|
|
|
|