mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
Fix OS detection
This commit is contained in:
parent
03ec861e03
commit
853ef9ff8f
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue