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