Line | |
---|
1 | #!/bin/sh
|
---|
2 | # $Id: installer.sh 130 2024-09-23 10:25:58Z nishi $
|
---|
3 |
|
---|
4 | fail() {
|
---|
5 | rm -f tewi-service.exe
|
---|
6 | rm -f tewi.exe
|
---|
7 | rm -f generated.conf
|
---|
8 | rm -f itworks.html
|
---|
9 | exit 1
|
---|
10 | }
|
---|
11 |
|
---|
12 | rm -f install-nossl.exe install-ssl.exe
|
---|
13 |
|
---|
14 | VERSION=`make get-version`
|
---|
15 |
|
---|
16 | sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
|
---|
17 |
|
---|
18 | make clean || fail
|
---|
19 | make PLATFORM=$1 -j4 || fail
|
---|
20 | cp Server/tewi.exe tewi.exe
|
---|
21 | make clean || fail
|
---|
22 | make PLATFORM=$1-service -j4 || fail
|
---|
23 | cp Server/tewi.exe tewi-service.exe
|
---|
24 | cd Server
|
---|
25 | ../Tool/genconf "C:/Tewi" > ../generated.conf
|
---|
26 | ../Tool/itworks > ../itworks.html
|
---|
27 | makensis -DVERSION=$VERSION install.nsi
|
---|
28 | cp install.exe ../install-nossl.exe
|
---|
29 | rm -f tewi.exe tewi-service.exe
|
---|
30 | cd ..
|
---|
31 |
|
---|
32 | sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
|
---|
33 |
|
---|
34 | make clean || fail
|
---|
35 | make PLATFORM=$1 -j4 || fail
|
---|
36 | cp Server/tewi.exe tewi.exe
|
---|
37 | make clean || fail
|
---|
38 | make PLATFORM=$1-service -j4 || fail
|
---|
39 | cp Server/tewi.exe tewi-service.exe
|
---|
40 | cd Server
|
---|
41 | ../Tool/genconf "C:/Tewi" > ../generated.conf
|
---|
42 | ../Tool/itworks > ../itworks.html
|
---|
43 | makensis -DVERSION=$VERSION install.nsi
|
---|
44 | cp install.exe ../install-ssl.exe
|
---|
45 | rm -f tewi.exe tewi-service.exe
|
---|
46 | cd ..
|
---|
47 |
|
---|
48 | rm itworks.html
|
---|
49 | rm generated.conf
|
---|
Note:
See
TracBrowser
for help on using the repository browser.