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