mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix BuildTachidesk task on Unix machines
This commit is contained in:
@@ -86,7 +86,11 @@ fun TaskContainerScope.registerTachideskTasks(project: Project) {
|
|||||||
onlyIfTachideskDoesntExist(rootDir)
|
onlyIfTachideskDoesntExist(rootDir)
|
||||||
|
|
||||||
workingDir(File(tmpDir(), "Tachidesk-${tachideskVersion.drop(1)}/"))
|
workingDir(File(tmpDir(), "Tachidesk-${tachideskVersion.drop(1)}/"))
|
||||||
commandLine("cmd", "/c", "gradlew", ":server:shadowJar")
|
val os = DefaultNativePlatform.getCurrentOperatingSystem()
|
||||||
|
when {
|
||||||
|
os.isWindows -> commandLine("cmd", "/c", "gradlew", ":server:shadowJar")
|
||||||
|
os.isLinux || os.isMacOsX -> commandLine("./gradlew", ":server:shadowJar")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
register<Copy>(copyTachideskJarTask) {
|
register<Copy>(copyTachideskJarTask) {
|
||||||
group = tachideskGroup
|
group = tachideskGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user