Fix OS detection

This commit is contained in:
TSR Berry 2023-07-21 16:20:10 +02:00 committed by Emmanuel Hansen
parent 03ec861e03
commit 853ef9ff8f

View File

@ -1,3 +1,5 @@
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
plugins {
id 'base'
}
@ -62,8 +64,9 @@ ext.publishTree = fileTree(publishDirectory) {
tasks.register('compileLibRyujinx', Exec) {
workingDir '../../LibRyujinx'
OperatingSystem os = DefaultNativePlatform.currentOperatingSystem
if (toolchainPath != null) {
if (OperatingSystem.getName() == "windows") {
if (os.isWindows()) {
environment "PATH", "${toolchainPath};${providers.environmentVariable("PATH").get()}"
}
else {