Update deployment script to include the build no. into the out filename.
This commit is contained in:
parent
75bd180939
commit
efa535309d
@ -1,6 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
setlocal ENABLEDELAYEDEXPANSION
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
REM :: SETUP PATHS ::
|
REM :: SETUP ENVIRONMENT ::
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
call _paths.bat
|
call _paths.bat
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
@ -15,21 +16,14 @@ if not "%LAMEXP_REDIST%"=="0" (
|
|||||||
set "LAMEXP_REDIST=1"
|
set "LAMEXP_REDIST=1"
|
||||||
)
|
)
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
|
REM :: SETUP PATHS ::
|
||||||
|
REM ------------------------------------------
|
||||||
set "OUT_PATH=..\..\bin\%LAMEXP_CONFIG%"
|
set "OUT_PATH=..\..\bin\%LAMEXP_CONFIG%"
|
||||||
set "OUT_DATE=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%"
|
set "OUT_DATE=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%"
|
||||||
set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.%LAMEXP_CONFIG:_=-%"
|
|
||||||
set "TMP_PATH=%TEMP%\~LameXP.%LAMEXP_CONFIG%.%OUT_DATE%.tmp"
|
set "TMP_PATH=%TEMP%\~LameXP.%LAMEXP_CONFIG%.%OUT_DATE%.tmp"
|
||||||
set "OBJ_PATH=..\..\obj\%LAMEXP_CONFIG%"
|
set "OBJ_PATH=..\..\obj\%LAMEXP_CONFIG%"
|
||||||
set "MOC_PATH=..\..\tmp"
|
set "MOC_PATH=..\..\tmp"
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
REM :: READ VERSION INFO ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
call _version.bat
|
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
|
||||||
call _error.bat "FAILD TO READ VERSION INFO!"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: CLEAN UP ::
|
REM :: CLEAN UP ::
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
del /Q "%OUT_PATH%\*.exe"
|
del /Q "%OUT_PATH%\*.exe"
|
||||||
@ -40,6 +34,31 @@ del /Q "%OBJ_PATH%\*.bat"
|
|||||||
del /Q "%OBJ_PATH%\*.idb"
|
del /Q "%OBJ_PATH%\*.idb"
|
||||||
del /Q "%MOC_PATH%\*.cpp"
|
del /Q "%MOC_PATH%\*.cpp"
|
||||||
del /Q "%MOC_PATH%\*.h"
|
del /Q "%MOC_PATH%\*.h"
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: BUILD BINARIES ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
call _build.bat "..\..\LameXP.sln" "%LAMEXP_CONFIG%"
|
||||||
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
|
call _error.bat "BUILD HAS FAILED"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: READ VERSION INFO ::
|
||||||
|
REM ------------------------------------------
|
||||||
|
call _version.bat
|
||||||
|
if not "%LAMEXP_ERROR%"=="0" (
|
||||||
|
call _error.bat "FAILD TO READ VERSION INFO!"
|
||||||
|
GOTO:EOF
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.%LAMEXP_CONFIG:_=-%.Build-%VER_LAMEXP_BUILD%"
|
||||||
|
for /L %%n in (1, 1, 99) do (
|
||||||
|
if exist "!OUT_FILE!.exe" set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.%LAMEXP_CONFIG:_=-%.Build-%VER_LAMEXP_BUILD%.Update-%%n"
|
||||||
|
if exist "!OUT_FILE!.zip" set "OUT_FILE=%OUT_PATH%\..\LameXP.%OUT_DATE%.%LAMEXP_CONFIG:_=-%.Build-%VER_LAMEXP_BUILD%.Update-%%n"
|
||||||
|
)
|
||||||
|
REM ------------------------------------------
|
||||||
|
REM :: DELETE OLD OUTPUT FILE ::
|
||||||
|
REM ------------------------------------------
|
||||||
del "%OUT_FILE%.exe"
|
del "%OUT_FILE%.exe"
|
||||||
del "%OUT_FILE%.zip"
|
del "%OUT_FILE%.zip"
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
@ -52,14 +71,6 @@ if exist "%OUT_FILE%.zip" (
|
|||||||
GOTO:EOF
|
GOTO:EOF
|
||||||
)
|
)
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
REM :: BUILD BINARIES ::
|
|
||||||
REM ------------------------------------------
|
|
||||||
call _build.bat "..\..\LameXP.sln" "%LAMEXP_CONFIG%"
|
|
||||||
if not "%LAMEXP_ERROR%"=="0" (
|
|
||||||
call _error.bat "BUILD HAS FAILED"
|
|
||||||
GOTO:EOF
|
|
||||||
)
|
|
||||||
REM ------------------------------------------
|
|
||||||
REM :: POST BUILD ::
|
REM :: POST BUILD ::
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
rd /S /Q "%TMP_PATH%"
|
rd /S /Q "%TMP_PATH%"
|
||||||
@ -106,6 +117,9 @@ if not exist "%OUT_FILE%.exe" (
|
|||||||
GOTO:EOF
|
GOTO:EOF
|
||||||
)
|
)
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
|
attrib +R "%OUT_FILE%.zip"
|
||||||
|
attrib +R "%OUT_FILE%.exe"
|
||||||
|
REM ------------------------------------------
|
||||||
echo.
|
echo.
|
||||||
echo BUIDL COMPLETED SUCCESSFULLY :-)
|
echo BUIDL COMPLETED SUCCESSFULLY :-)
|
||||||
echo.
|
echo.
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#define VER_LAMEXP_MAJOR 4
|
#define VER_LAMEXP_MAJOR 4
|
||||||
#define VER_LAMEXP_MINOR_HI 0
|
#define VER_LAMEXP_MINOR_HI 0
|
||||||
#define VER_LAMEXP_MINOR_LO 0
|
#define VER_LAMEXP_MINOR_LO 0
|
||||||
#define VER_LAMEXP_BUILD 60
|
#define VER_LAMEXP_BUILD 62
|
||||||
#define VER_LAMEXP_SUFFIX TechPreview
|
#define VER_LAMEXP_SUFFIX TechPreview
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user