forked from MeloNX/MeloNX
Fix OS detection
This commit is contained in:
parent
03ec861e03
commit
853ef9ff8f
@ -1,3 +1,5 @@
|
|||||||
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'base'
|
id 'base'
|
||||||
}
|
}
|
||||||
@ -62,8 +64,9 @@ ext.publishTree = fileTree(publishDirectory) {
|
|||||||
tasks.register('compileLibRyujinx', Exec) {
|
tasks.register('compileLibRyujinx', Exec) {
|
||||||
workingDir '../../LibRyujinx'
|
workingDir '../../LibRyujinx'
|
||||||
|
|
||||||
|
OperatingSystem os = DefaultNativePlatform.currentOperatingSystem
|
||||||
if (toolchainPath != null) {
|
if (toolchainPath != null) {
|
||||||
if (OperatingSystem.getName() == "windows") {
|
if (os.isWindows()) {
|
||||||
environment "PATH", "${toolchainPath};${providers.environmentVariable("PATH").get()}"
|
environment "PATH", "${toolchainPath};${providers.environmentVariable("PATH").get()}"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user