Skip to content

Commit f2430fd

Browse files
committed
Support macOS ARM
1 parent 1183b17 commit f2430fd

File tree

18 files changed

+8
-11
lines changed

18 files changed

+8
-11
lines changed

build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
2222
plugins {
2323
id 'java'
2424
id 'application'
25-
id 'com.github.ben-manes.versions' version '0.41.0'
26-
id 'org.beryx.jlink' version '2.24.4'
27-
id 'org.openjfx.javafxplugin' version '0.0.11'
25+
id 'com.github.ben-manes.versions' version '0.42.0'
26+
id 'org.beryx.jlink' version '2.25.0'
27+
id 'org.openjfx.javafxplugin' version '0.0.12'
2828

2929
id 'idea'
3030
}
@@ -103,7 +103,8 @@ jlink {
103103
noConsole = true
104104
}
105105
jpackage {
106-
imageOptions = [ '--copyright', copyright, '--description', description, '--vendor', 'airsquared']
106+
imageOptions = [ '--copyright', copyright, '--description', description]
107+
vendor = 'airsquared'
107108
installerOutputDir = file("${buildDir}/distributions/")
108109

109110
if (os.isMacOsX()) {
@@ -130,8 +131,8 @@ jlink {
130131
from "${projectDir}/LICENSE", "${projectDir}/libraries_used.txt"
131132
into "${buildDir}/jpackage/blobsaver.app/Contents/Resources"
132133
}
133-
exec {
134-
commandLine "codesign", "--remove-signature", "${buildDir}/jpackage/blobsaver.app"
134+
exec { // needed to prevent "application is damaged" error when opening quarantined app
135+
commandLine "codesign", "--force", "--deep", "--sign", "-", "${buildDir}/jpackage/blobsaver.app"
135136
}
136137
} else if (os.isWindows()) jpackageImage.doLast {
137138
copy {
-21 KB
Binary file not shown.
-1.79 MB
Binary file not shown.
-18.1 KB
Binary file not shown.
-31 KB
Binary file not shown.
Binary file not shown.
569 KB
Binary file not shown.
147 KB
Binary file not shown.
-105 KB
Binary file not shown.

dist/macos/Contents/Frameworks/libplist.dylib

100644100755
282 KB
Binary file not shown.

0 commit comments

Comments
 (0)