2015-09-13 07:30:59 +00:00
|
|
|
@echo off
|
|
|
|
SETLOCAL
|
|
|
|
|
|
|
|
set origdir=%cd%
|
|
|
|
cd /d %~dp0..\..
|
|
|
|
set base_dir=%cd%
|
|
|
|
cd /d %origdir%
|
|
|
|
|
2019-09-30 02:17:28 +00:00
|
|
|
if "%~4"=="" (
|
|
|
|
echo Usage: UpdateVersion.cmd [BuildMode] [Platform] [InFile] [OutFile]
|
2017-11-15 09:04:09 +00:00
|
|
|
goto :eof
|
2015-09-13 07:30:59 +00:00
|
|
|
)
|
|
|
|
|
2017-11-15 09:04:09 +00:00
|
|
|
if not "%1" == "" set BuildMode=%~1
|
2019-09-30 02:17:28 +00:00
|
|
|
if not "%~2" == "" set Platform=%~2
|
|
|
|
if not "%~2" == "" set InFile="%~3"
|
|
|
|
if not "%~3" == "" set OutFile="%~4"
|
2015-09-13 07:30:59 +00:00
|
|
|
|
2019-09-30 02:17:28 +00:00
|
|
|
if %Platform%==x64 set BuildMode=%BuildMode%64
|
|
|
|
|
2021-06-11 11:49:28 +00:00
|
|
|
echo "%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile%
|
|
|
|
"%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile%
|