Compare commits
4 Commits
release-sc
...
1.6.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
440c67c443 | ||
![]() |
f1dce3c91e | ||
![]() |
423cb83945 | ||
![]() |
b78b90424c |
5
build.sh
5
build.sh
@@ -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 \
|
||||
|
@@ -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()));
|
||||
|
||||
|
Reference in New Issue
Block a user