mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fixes for bsd
This commit is contained in:
parent
081dced632
commit
675fb6972a
2 changed files with 3 additions and 5 deletions
|
@ -145,8 +145,8 @@ project.ext {
|
||||||
"-Dvisualvm.display.name=XPipe",
|
"-Dvisualvm.display.name=XPipe",
|
||||||
"-Djavafx.preloader=io.xpipe.app.core.AppPreloader"
|
"-Djavafx.preloader=io.xpipe.app.core.AppPreloader"
|
||||||
]
|
]
|
||||||
// Disable this for now as it requires Windows 10+
|
// Disable this on Windows for now as it requires Windows 10+
|
||||||
if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) {
|
if (org.gradle.internal.os.OperatingSystem.current().isLinux() || org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
||||||
jvmRunArgs += ['-XX:+UseZGC']
|
jvmRunArgs += ['-XX:+UseZGC']
|
||||||
}
|
}
|
||||||
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
||||||
|
|
|
@ -21,10 +21,8 @@ public interface OsType {
|
||||||
return MACOS;
|
return MACOS;
|
||||||
} else if (osName.contains("win")) {
|
} else if (osName.contains("win")) {
|
||||||
return WINDOWS;
|
return WINDOWS;
|
||||||
} else if (osName.contains("nux")) {
|
|
||||||
return LINUX;
|
|
||||||
} else {
|
} else {
|
||||||
throw new UnsupportedOperationException("Unknown operating system");
|
return LINUX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue