mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 04:14:28 -05:00
eb95c6895a
- Renamed folder build_libs to build-libs - Removed old file stripSVN.sh - Fixed some batch files - Switch from curl to wget - Added Qt environment - Added build.bat to build everything
32 lines
833 B
Batchfile
32 lines
833 B
Batchfile
@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"
|
|
call "%~dp0build-libs\build-libs.bat" auto-copy
|
|
if errorlevel 1 %cecho% error "Failed to build libraries." & exit /B %ERRORLEVEL%
|
|
|
|
%cecho% info "Build %SourceName%"
|
|
call "%~dp0build\build.bat"
|
|
if errorlevel 1 %cecho% error "Failed to build %SourceName%." & exit /B %ERRORLEVEL%
|
|
|
|
%cecho% info "Pack %SourceName%"
|
|
call "%~dp0build\pack.bat"
|
|
if errorlevel 1 %cecho% error "Failed to pack %SourceName%." & exit /B %ERRORLEVEL%
|
|
|
|
%cecho% info "Build installer"
|
|
call "%~dp0build\build-installer.bat"
|
|
if errorlevel 1 %cecho% error "Failed to build installer." & exit /B %ERRORLEVEL%
|
|
|
|
exit /B 0
|
|
|
|
:error_env
|
|
echo Failed to initialize environment.
|
|
exit /B 1
|