Line | |
---|
1 | #!/bin/sh
|
---|
2 | # $Id: make-installer.sh 355 2024-10-16 09:28:09Z nishi $
|
---|
3 |
|
---|
4 | if [ "x$1" = "x" ]; then
|
---|
5 | echo "Usage: $0 win32|win64|vc6|bcc [description]"
|
---|
6 | exit 1
|
---|
7 | fi
|
---|
8 |
|
---|
9 | fail() {
|
---|
10 | rm -f tewi.exe
|
---|
11 | rm -f generated.conf
|
---|
12 | rm -f itworks.html
|
---|
13 | exit 1
|
---|
14 | }
|
---|
15 |
|
---|
16 | rm -rf Tewi
|
---|
17 | rm -f tewi.exe
|
---|
18 | rm -f itworks.html
|
---|
19 | rm -f generated.conf
|
---|
20 | rm -f install.exe
|
---|
21 | rm -f tewi.7z
|
---|
22 |
|
---|
23 | VERSION=`make get-version`
|
---|
24 |
|
---|
25 | make clean || fail
|
---|
26 | make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
|
---|
27 | cp Server/tewi.exe tewi.exe
|
---|
28 | cd Server
|
---|
29 | ../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
|
---|
30 | ../Tool/itworks > ../itworks.html
|
---|
31 | makensis -DVERSION=$VERSION -DONLY_EXEC install.nsi
|
---|
32 | cp install.exe ../install.exe
|
---|
33 | cd ..
|
---|
34 | rm -rf Tewi tewi.7z
|
---|
35 | 7z x -oTewi install.exe
|
---|
36 | rm -rf Tewi/'$'*
|
---|
37 | 7z a tewi.7z Tewi
|
---|
38 | rm -rf Tewi
|
---|
39 | rm tewi.exe
|
---|
40 | rm itworks.html
|
---|
41 | rm generated.conf
|
---|
Note:
See
TracBrowser
for help on using the repository browser.