Remove complication for Win script call, fix sh script invocation
This commit is contained in:
+2
-3
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user