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'
}
}
+3 -7
View File
@@ -19,7 +19,7 @@ if "%ERRORLEVEL%" == "0" (
echo %ESC%[92mSuccessful%ESC%[0m
) else (
echo %ESC%[31mFailed%ESC%[0m
call :pauseThenExit
exit /B 1
)
echo.
@@ -52,7 +52,7 @@ if "%ERRORLEVEL%" == "0" (
echo %ESC%[92mSuccessful%ESC%[0m
) else (
echo %ESC%[31mFailed%ESC%[0m
call :pauseThenExit
exit /B 1
)
del classes6.dex
del classes8.dex
@@ -66,7 +66,7 @@ if "%ERRORLEVEL%" == "0" (
echo %ESC%[92mSuccessful%ESC%[0m
) else (
echo %ESC%[31mFailed%ESC%[0m
call :pauseThenExit
exit /B 1
)
:setESC
@@ -75,7 +75,3 @@ for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1)
exit /B 0
)
exit
:pauseThenExit
pause
Exit /B 1