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