forked from MeloNX/MeloNX
Fix OS detection
This commit is contained in:
parent
878b729558
commit
5da6aa636c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user