diff --git a/build.gradle b/build.gradle index d6ead746a..02dc94e44 100644 --- a/build.gradle +++ b/build.gradle @@ -85,13 +85,13 @@ def getArchName() { def getPlatformName() { def currentOS = DefaultNativePlatform.currentOperatingSystem; - def platform = null + def platform if (currentOS.isWindows()) { platform = 'windows' - } else if (currentOS.isLinux()) { - platform = 'linux' - } else if (currentOS.isMacOsX()) { + } else if (currentOS.isMacOsX()) { platform = 'osx' + } else { + platform = 'linux' } return platform; } diff --git a/gradle/gradle_scripts/javafx.gradle b/gradle/gradle_scripts/javafx.gradle index 8720c92d0..243b8d91c 100644 --- a/gradle/gradle_scripts/javafx.gradle +++ b/gradle/gradle_scripts/javafx.gradle @@ -4,10 +4,10 @@ def currentOS = DefaultNativePlatform.currentOperatingSystem; def platform = null if (currentOS.isWindows()) { platform = 'win' -} else if (currentOS.isLinux()) { - platform = 'linux' } else if (currentOS.isMacOsX()) { platform = 'mac' +} else { + platform = 'linux' } if (System.getProperty ("os.arch") == 'aarch64') {