fixed compile

pull/1/head
knaccc 5 years ago
parent 78385c2b25
commit fe95ea7030

@ -6,10 +6,13 @@ basedir=$(dirname $(dirname $(readlink -fm $0)))
$basedir/bin/convert-jars-to-modules.sh
# compile the Main class that starts the I2P router and SAM listener
javac --module-path lib -d target/classes $(find src -name '*.java')
echo "*** Compiling Main class"
javac --module-path import/lib -d target/classes $(find src -name '*.java')
# package as a modular jar
echo "*** Packaging as a modular jar"
jar --create --file target/org.getmonero.i2p.embedded.jar --main-class org.getmonero.i2p.embedded.Main -C target/classes .
# create an OS specific launcher which will bundle together the code and a minimal JVM
echo "*** Performing jlink"
jlink --module-path target/modules:target/org.getmonero.i2p.embedded.jar --add-modules org.getmonero.i2p.embedded --launcher router=org.getmonero.i2p.embedded --output target/router --strip-debug --compress 2 --no-header-files --no-man-pages

Loading…
Cancel
Save