summaryrefslogtreecommitdiff
path: root/tools/build_scripts/z6_CompileInstallers.bat
blob: a8869aa992968921f4bcdbbc0cd910ddcc5b1bf3 (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
call a_SetVar32.bat
if not exist %ArchDistr% mkdir %ArchDistr%

pushd tools\installer_ng
call createstructure.bat
mkdir tmp
copy /V /Y ..\..\build\build.no tmp\build.no
pushd tmp
for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
popd

%ISCC% /Dptx86 /DAppVer=%MirVer% /O"Output" "InnoNG_32\MirandaNG.iss" >iscc.log 2>&1
if errorlevel 1 (
  start "" iscc.log
  exit 1
)

%ISCC% /DAppVer=%MirVer% /O"Output" "InnoNG_64\MirandaNG.iss" >iscc.log 2>&1
if errorlevel 1 (
  start "" iscc.log
  exit 1
)

call cleanup.bat
copy /V /Y Output\miranda-ng-alpha-latest*.exe "%ArchDistr%\"
rd /S /Q Output
popd