mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20: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 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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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') {
|
||||||
|
|
Loading…
Reference in a new issue