summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-09-06 11:35:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-09-06 11:35:31 +0300
commit889fb36e39181451133b35689de87769207ef4a4 (patch)
tree23d026c7258426d571c2ab02f49dfba023f4b06b /tools
parent67b7a476ddd8b264c8ad84d2a3079f5ae39b8fc9 (diff)
merge with stable
Diffstat (limited to 'tools')
-rw-r--r--tools/build_scripts/z3_PackArchivesStable.bat12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/build_scripts/z3_PackArchivesStable.bat b/tools/build_scripts/z3_PackArchivesStable.bat
index 4669d80f10..6124afbfa9 100644
--- a/tools/build_scripts/z3_PackArchivesStable.bat
+++ b/tools/build_scripts/z3_PackArchivesStable.bat
@@ -1,6 +1,14 @@
set tp=%1
-if "%tp%"=="" (echo "please specify target platform 32 or 64!"&&pause&&goto :EOF)
-for /F "tokens=1,2,3,4 delims= " %%i in (build\build.no.stable) do set MirVer=%%i.%%j.%%k.%%l
+if "%tp%"=="" (echo "please specify target platform 32 or 64!" && pause && goto :EOF)
+
+for /F "tokens=1,2,3,4 delims= " %%i in (build\build.no.stable) do (
+ if "%%l" == "" (
+ set MirVer=%%i.%%j.%%k
+ ) else (
+ set MirVer=%%i.%%j.%%k.%%l
+ )
+)
+
if /i '%tp%' == '64' set bit=_x64
if /i '%tp%' == '32' set CompileString=..\Tools\InnoSetup5\ISCC.exe /Dptx86 /DAppVer=%MirVer% "MirandaNG.iss"
if /i '%tp%' == '64' set CompileString=..\Tools\InnoSetup5\ISCC.exe /DAppVer=%MirVer% "MirandaNG.iss"