I wrote a batch script that successfully executed someone else's command, but my subsequent command did not continue. Why? My script:
cd /d "%~dp0"
echo %cd%
set Param=%1%
set resultDir=..\build\UnityXXXXX-%Param%-Mac
echo start build Editor
: This line is executing someone else's script!!!!!!!!
.\jam Editor -sCONFIG=release
: The previous script finishes executing without any error, but even then, the later scripts will not continue to execute!!!!!!!!
echo start copy to build dir
if not exist .\build\WindowsEditor\Unity.exe (
echo the Unity is not build, build it first.
pause
exit
)
if exist %resultDir% rd /s /q %resultDir%
md %resultDir%
xcopy /s ..\UnityXXXXX\* %resultDir%\
xcopy .\build\WindowsEditor\Unity.exe %resultDir%\Contents\Unity.exe*
echo finish
pause
This image is the result of the run, as you can see here, the execution was successful, but the echo of my later script has no output and no execution