Skip to content

Commit

Permalink
Add support for ARM macs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Aug 19, 2024
1 parent d2ca155 commit f0af206
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ if (javafxPlatform == "unspecified") {
project.ext.javafxPlatform = "linux"
break
case OperatingSystem.MAC_OS:
project.ext.javafxPlatform = "mac"
String arch = System.getProperty("os.arch")
if (arch == "aarch64") {
project.ext.javafxPlatform = "mac-aarch64"
} else {
project.ext.javafxPlatform = "mac"
}
break
case OperatingSystem.WINDOWS:
project.ext.javafxPlatform = "win"
Expand Down

0 comments on commit f0af206

Please sign in to comment.