Disable packaging and building installer by default

The average dev doesn't need to test out the zipping and installer
building utility. Having them package on every build is a waste of time.
This commit is contained in:
Vasily
2018-12-29 00:58:26 +01:00
parent 50a7486fc9
commit 7449b1f1a9
2 changed files with 14 additions and 3 deletions
+13 -3
View File
@@ -1,6 +1,10 @@
@echo off
REM Echo off to avoid spam.
SET exit_code_success=0
SET exit_code_failure_build_apps=1
SET exit_code_failure_build_locations=2
REM Used for echos.
SET top_level_activity=MASTER
@@ -19,15 +23,21 @@ SET project_dir=%folder_path%
ECHO %top_level_activity%: Calling build script.
CALL %project_dir%\build_scripts\win\build.cmd
IF ERRORLEVEL 1 EXIT /B 1
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
ECHO %top_level_activity%: Calling deployment script.
CALL %project_dir%\build_scripts\win\deploy.cmd
IF ERRORLEVEL 1 EXIT /B 1
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
REM The average dev doesn't need to package and zip it, just build it and test.
IF NOT DEFINED BUILD_PACKAGE (
ECHO %top_level_activity%: BUILD_PACKAGE not set. Not building installer and portable zip versions.
ECHO %top_level_activity%: MASTER DONE.
EXIT /B %exit_code_success%
)
ECHO %top_level_activity%: Calling packaging script.
CALL %project_dir%\build_scripts\win\package.cmd
IF ERRORLEVEL 1 EXIT /B 1
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
CD %original_dir%