2018-03-08 11:45:24 -05: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 libraries"
|
2018-05-07 00:42:52 -04:00
|
|
|
call "%~dp0build-libs\build-libs.bat"
|
2018-03-08 11:45:24 -05:00
|
|
|
if errorlevel 1 %cecho% error "Failed to build libraries." & exit /B %ERRORLEVEL%
|
|
|
|
|
|
|
|
%cecho% info "Build %SourceName%"
|
2018-06-17 11:51:58 -04:00
|
|
|
call "%~dp0build\build.bat" release tor version autologin plugins
|
2018-03-08 11:45:24 -05:00
|
|
|
if errorlevel 1 %cecho% error "Failed to build %SourceName%." & exit /B %ERRORLEVEL%
|
|
|
|
|
|
|
|
%cecho% info "Pack %SourceName%"
|
2018-06-17 11:51:58 -04:00
|
|
|
call "%~dp0build\pack.bat" release tor
|
2018-03-08 11:45:24 -05: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
|