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 currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform = null
def platform
if (currentOS.isWindows()) {
platform = 'windows'
} else if (currentOS.isLinux()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) {
platform = 'osx'
} else {
platform = 'linux'
}
return platform;
}

View file

@ -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') {