Remove complication for Win script call, fix sh script invocation

This commit is contained in:
saoqq
2022-11-25 23:04:37 +03:00
parent e243522f95
commit 6325d8fe68
2 changed files with 5 additions and 10 deletions
+2 -3
View File
@@ -106,10 +106,9 @@ task buildVTL(type: Exec) {
dependsOn 'exportDex'
workingDir(projectDir.parentFile)
if (Os.isFamily("unix") || Os.isFamily("mac")) {
commandLine './build.sh'
commandLine 'bash', '-c','./scripts/build.sh'
} else {
// ugly workaround for https://github.com/gradle/gradle/issues/18716
commandLine 'cmd','/C','start','""','cmd','/K','".\\scripts\\build.bat && exit"'
commandLine 'cmd','/C', '.\\scripts\\build.bat'
}
}