Handle bsd better

This commit is contained in:
crschnick 2024-08-03 07:56:34 +00:00
parent 1140267809
commit 081dced632
2 changed files with 6 additions and 6 deletions

View file

@ -85,13 +85,13 @@ def getArchName() {
def getPlatformName() { def getPlatformName() {
def currentOS = DefaultNativePlatform.currentOperatingSystem; def currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform = null def platform
if (currentOS.isWindows()) { if (currentOS.isWindows()) {
platform = 'windows' platform = 'windows'
} else if (currentOS.isLinux()) { } else if (currentOS.isMacOsX()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) {
platform = 'osx' platform = 'osx'
} else {
platform = 'linux'
} }
return platform; return platform;
} }

View file

@ -4,10 +4,10 @@ def currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform = null def platform = null
if (currentOS.isWindows()) { if (currentOS.isWindows()) {
platform = 'win' platform = 'win'
} else if (currentOS.isLinux()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) { } else if (currentOS.isMacOsX()) {
platform = 'mac' platform = 'mac'
} else {
platform = 'linux'
} }
if (System.getProperty ("os.arch") == 'aarch64') { if (System.getProperty ("os.arch") == 'aarch64') {