summaryrefslogtreecommitdiff
path: root/packages/windows/binstaller.bat
blob: 8f5700a995b37bb28b99018e0dde1cbd109e8a4f (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
36
37
38
39
40
41
42
43
44
45
@echo OFF
if "%1"=="" goto blankplat
if "%2"=="" goto blankver
if "%1"=="wnt" goto goodbuild
if "%1"=="w2k" goto goodbuild
echo Unknown build platform: %1 %2
goto usage
:blankplat
echo Must specify build platform (wnt, w2k)!
goto usage
:blankver
echo Must specify build version (eg. 0.98)
:usage
echo usage: BINSTALLER plat ver
echo   where plat is wnt or w2k
echo   and ver is version (eg 0.98)
goto fini


:goodbuild
set plat=%1
set ver=%2
set tmpfile=iss.SetupVars.tmp
echo Building installer for platform %plat% for version %ver%
echo   Assuming existence of dist.%plat%.d!
echo SourceDir=dist.%plat%.d > %tmpfile%
goto %plat%

:wnt
echo AppVerName=Alpine %ver% >> %tmpfile%
echo OutputBaseFilename=setup_alpine_%ver% >> %tmpfile%
echo UninstallDisplayName=Alpine %ver% >> %tmpfile%
goto goodbuildcont
:w2k
echo AppVerName=Alpine %ver% (with Windows Kerberos) >> %tmpfile%
echo OutputBaseFilename=setup_alpine_%ver%_w2k >> %tmpfile%
echo UninstallDisplayName=Alpine %ver% (with Windows Kerberos) >> %tmpfile%
goto goodbuildcont

:goodbuildcont
iscc alpine.iss
del %tmpfile%
echo Done.

:fini