2018-10-13 07:19:22 -04:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
:: Initialize environment
|
|
|
|
call "%~dp0env.bat"
|
|
|
|
if errorlevel 1 goto error_env
|
|
|
|
call "%EnvPath%\env.bat"
|
|
|
|
if errorlevel 1 goto error_env
|
|
|
|
|
|
|
|
%cecho% info "Build %SourceName%"
|
2020-06-01 09:28:12 -04:00
|
|
|
call "%~dp0build\build.bat" 64 release autologin "CONFIG+=rs_use_native_dialogs"
|
2018-10-13 07:19:22 -04:00
|
|
|
if errorlevel 1 %cecho% error "Failed to build %SourceName%." & exit /B %ERRORLEVEL%
|
|
|
|
|
|
|
|
%cecho% info "Pack %SourceName%"
|
2020-06-01 09:28:12 -04:00
|
|
|
call "%~dp0build\pack.bat" 64 release autologin "CONFIG+=rs_use_native_dialogs"
|
2018-10-13 07:19:22 -04:00
|
|
|
if errorlevel 1 %cecho% error "Failed to pack %SourceName%." & exit /B %ERRORLEVEL%
|
|
|
|
|
|
|
|
exit /B 0
|
|
|
|
|
|
|
|
:error_env
|
|
|
|
echo Failed to initialize environment.
|
|
|
|
exit /B 1
|