Compare commits

...

4 Commits

Author SHA1 Message Date
Zlatin Balevsky
440c67c443 set i2p.dir.lib property 2021-12-05 18:28:50 +00:00
Zlatin Balevsky
f1dce3c91e do not try to auto-set JAVA_HOME 2021-11-03 12:44:32 +00:00
Zlatin Balevsky
423cb83945 open packages for java 17 2021-10-21 17:06:34 +01:00
idk
b78b90424c Merge branch 'release-script' into 'master'
Add a release.sh script and indicate what needs to be done to finish it

See merge request i2p-hackers/i2p-jpackage-mac!1
2021-10-21 15:21:18 +00:00
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,6 @@ if [ -z ${I2P_BUILD_NUMBER} ]; then
exit 1
fi
JAVA_HOME="$(/usr/libexec/java_home)"
echo "JAVA_HOME is $JAVA_HOME"
echo "cleaning"
@@ -90,7 +89,9 @@ rm build/*.bak
jpackage --name I2P \
--java-options "-Xmx512m" \
--java-options "--illegal-access=permit" \
--java-options "--add-opens java.base/java.lang=ALL-UNNAMED" \
--java-options "--add-opens java.base/sun.nio.fs=ALL-UNNAMED" \
--java-options "--add-opens java.base/java.nio=ALL-UNNAMED" \
--type app-image \
--verbose \
--resource-dir build \

View File

@@ -23,10 +23,12 @@ public class MacLauncher {
String path = System.getProperty(APP_PATH,"unknown");
File f = new File(path);
File contents = f.getParentFile().getParentFile();
File app = new File(contents, "app");
File resources = new File(contents, "Resources");
File bundleLocation = contents.getParentFile().getParentFile();
System.setProperty("i2p.dir.base", resources.getAbsolutePath());
System.setProperty("i2p.dir.lib", app.getAbsolutePath());
System.setProperty("mac.bundle.location", bundleLocation.getAbsolutePath());
System.setProperty("router.pid", String.valueOf(ProcessHandle.current().pid()));