diff --git a/Makefile b/Makefile index 777192e3d..1d3f90e0a 100644 --- a/Makefile +++ b/Makefile @@ -27,4 +27,8 @@ win64: mac: ./gradlew mac - + +macArm64: + JAVA_HOME=$$(/usr/libexec/java_home -v 21) ./gradlew macArm64 + @ls -lh build/libs/*-macArm64.zip + diff --git a/build.gradle b/build.gradle index 45a070385..df26e8bca 100644 --- a/build.gradle +++ b/build.gradle @@ -304,7 +304,7 @@ def jlink(String target, String jrePath, String extraOpts = System.getenv("JLINK def jreDir = new File(target, jrePath) if (!jreDir.exists()) { jreDir.getParentFile().mkdirs() - exec("jlink --output $jrePath $extraOpts --vm=client --compress=2 --no-header-files --no-man-pages --strip-debug --add-modules " + javaModules.join(","), target) + exec("jlink --output $jrePath $extraOpts --compress=2 --no-header-files --no-man-pages --strip-debug --add-modules " + javaModules.join(","), target) ant.delete(dir: new File(jreDir, "legal")) } } diff --git a/ext/mac-bundle/Angry IP Scanner.app/Contents/Info.plist b/ext/mac-bundle/Angry IP Scanner.app/Contents/Info.plist index 1f0478af6..f86cafa2d 100644 --- a/ext/mac-bundle/Angry IP Scanner.app/Contents/Info.plist +++ b/ext/mac-bundle/Angry IP Scanner.app/Contents/Info.plist @@ -26,7 +26,10 @@ NSRequiresAquaSystemAppearance - LSRequiresNativeExecution - + LSArchitecturePriority + + arm64 + x86_64 + diff --git a/ext/mac-bundle/Angry IP Scanner.app/Contents/MacOS/ipscan b/ext/mac-bundle/Angry IP Scanner.app/Contents/MacOS/ipscan index e00e2a45e..99aaab867 100755 --- a/ext/mac-bundle/Angry IP Scanner.app/Contents/MacOS/ipscan +++ b/ext/mac-bundle/Angry IP Scanner.app/Contents/MacOS/ipscan @@ -2,4 +2,4 @@ BASEDIR=$(dirname "$0") java="$BASEDIR/jre/bin/java" if [ ! -e "$java" ]; then java=java; fi -exec "$java" --add-opens java.base/java.net=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -XstartOnFirstThread -jar "$BASEDIR"/ipscan*.jar +exec "$java" --add-opens java.base/java.net=ALL-UNNAMED --enable-native-access=ALL-UNNAMED -XstartOnFirstThread -jar "$BASEDIR"/*.jar