Rev | Line | |
---|
[62] | 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
|
---|
[128] | 7 | rm -f generated.conf
|
---|
| 8 | rm -f itworks.html
|
---|
[79] | 9 | mv config.h.bak config.h
|
---|
[62] | 10 | exit 1
|
---|
| 11 | }
|
---|
| 12 |
|
---|
[80] | 13 | rm -f install-nossl.exe install-ssl.exe
|
---|
| 14 |
|
---|
[78] | 15 | VERSION=`make get-version`
|
---|
| 16 |
|
---|
[79] | 17 | sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
|
---|
| 18 |
|
---|
[62] | 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
|
---|
[128] | 26 | ../Tool/genconf > ../generated.conf
|
---|
| 27 | ../Tool/itworks > ../itworks.html
|
---|
[78] | 28 | makensis -DVERSION=$VERSION install.nsi
|
---|
[79] | 29 | cp install.exe ../install-nossl.exe
|
---|
[62] | 30 | rm -f tewi.exe tewi-service.exe
|
---|
| 31 | cd ..
|
---|
[79] | 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
|
---|
[128] | 42 | ../Tool/genconf > ../generated.conf
|
---|
| 43 | ../Tool/itworks > ../itworks.html
|
---|
[79] | 44 | makensis -DVERSION=$VERSION install.nsi
|
---|
| 45 | cp install.exe ../install-ssl.exe
|
---|
| 46 | rm -f tewi.exe tewi-service.exe
|
---|
| 47 | cd ..
|
---|
[128] | 48 |
|
---|
| 49 | rm itworks.html
|
---|
| 50 | rm generated.conf
|
---|
Note:
See
TracBrowser
for help on using the repository browser.