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
878b729558
commit
5da6aa636c
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue