Change Win build script batch file from test.bat to current_build.bat

This commit is contained in:
Vasily
2019-01-05 20:43:41 +01:00
parent 4787933a52
commit 3e05bb07f9
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ Makefile*
installer/*.exe installer/*.exe
*.user* *.user*
build_scripts/win/__pycache__ build_scripts/win/__pycache__
build_scripts/win/test.bat build_scripts/win/current_build.bat
+2 -2
View File
@@ -1,8 +1,8 @@
@ECHO OFF @ECHO OFF
python build.py build python build.py build
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
call test.bat call current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
del test.bat del current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
PAUSE PAUSE
+1 -1
View File
@@ -122,7 +122,7 @@ def create_batch_file():
""" """
Creates a batch file in the dir. Must be called by another outside batch file. Creates a batch file in the dir. Must be called by another outside batch file.
""" """
file = open(get_project_dir() + "\\build_scripts\\win\\test.bat", "w+") file = open(get_project_dir() + "\\build_scripts\\win\\current_build.bat", "w+")
file.write(bat_file_contents) file.write(bat_file_contents)
file.close() file.close()
+2 -2
View File
@@ -1,8 +1,8 @@
@ECHO OFF @ECHO OFF
python build.py deploy python build.py deploy
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
call test.bat call current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
del test.bat del current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
PAUSE PAUSE
+2 -2
View File
@@ -1,8 +1,8 @@
@ECHO OFF @ECHO OFF
python build.py package python build.py package
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
call test.bat call current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
del test.bat del current_build.bat
IF ERRORLEVEL 1 EXIT /B 1 IF ERRORLEVEL 1 EXIT /B 1
PAUSE PAUSE
+3 -3
View File
@@ -24,13 +24,13 @@ SET project_dir=%folder_path%
ECHO %top_level_activity%: Calling build script. ECHO %top_level_activity%: Calling build script.
%PYTHON_LOC%python %project_dir%\build_scripts\win\build.py build %PYTHON_LOC%python %project_dir%\build_scripts\win\build.py build
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
call %project_dir%\build_scripts\win\test.bat call %project_dir%\build_scripts\win\current_build.bat
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
ECHO %top_level_activity%: Calling deployment script. ECHO %top_level_activity%: Calling deployment script.
%PYTHON_LOC%python %project_dir%\build_scripts\win\build.py deploy %PYTHON_LOC%python %project_dir%\build_scripts\win\build.py deploy
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
call %project_dir%\build_scripts\win\test.bat call %project_dir%\build_scripts\win\current_build.bat
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% 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. REM The average dev doesn't need to package and zip it, just build it and test.
@@ -42,7 +42,7 @@ IF NOT DEFINED BUILD_PACKAGE (
ECHO %top_level_activity%: Calling packaging script. ECHO %top_level_activity%: Calling packaging script.
%PYTHON_LOC%python %project_dir%\build_scripts\win\build.py package %PYTHON_LOC%python %project_dir%\build_scripts\win\build.py package
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
call %project_dir%\build_scripts\win\test.bat call %project_dir%\build_scripts\win\current_build.bat
IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps% IF ERRORLEVEL 1 EXIT /B %exit_code_failure_build_apps%
CD %original_dir% CD %original_dir%