mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Handle bsd better
This commit is contained in:
parent
1140267809
commit
081dced632
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue