blob: 6c389f8fb1063da2fe4af16f642d6b6e2352418b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
@echo off
if not exist MirandaNG.iss goto end
set GetVer=for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
for %%* in (.) do set InnoX=%%~n*
rem Get version
pushd ..\..\..\build
%GetVer%
popd
rem end
rem Create Inno setup compatible script that compiles without passing parameters to compiler
if %InnoX% == InnoNG_32 (
if exist MirandaNG32.iss del /F /Q MirandaNG32.iss
..\Tools\bom_remove.exe MirandaNG.iss
echo #define ptx86 > MirandaNG32.iss
echo #define AppVer "%MirVer%" >> MirandaNG32.iss
echo.>> MirandaNG32.iss
type MirandaNG.iss >> MirandaNG32.iss
..\Tools\bom_add.exe MirandaNG32.iss
..\Tools\bom_add.exe MirandaNG.iss
) else if %InnoX% == InnoNG_64 (
if exist MirandaNG64.iss del /F /Q MirandaNG64.iss
..\Tools\bom_remove.exe MirandaNG.iss
echo #define AppVer "%MirVer%" > MirandaNG64.iss
echo.>> MirandaNG64.iss
type MirandaNG.iss >> MirandaNG64.iss
..\Tools\bom_add.exe MirandaNG64.iss
..\Tools\bom_add.exe MirandaNG.iss
)
rem end
rem Delete bat file
del "%~f0
rem end
:end
|