2024-09-18 20:02:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
fail() {
|
|
|
|
rm -f tewi-service.exe
|
|
|
|
rm -f tewi.exe
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2024-09-19 10:56:38 +00:00
|
|
|
VERSION=`make get-version`
|
|
|
|
|
2024-09-18 20:02:26 +00:00
|
|
|
make clean || fail
|
|
|
|
make PLATFORM=$1 -j4 || fail
|
|
|
|
cp Server/tewi.exe tewi.exe
|
|
|
|
make clean || fail
|
|
|
|
make PLATFORM=$1-service -j4 || fail
|
|
|
|
cp Server/tewi.exe tewi-service.exe
|
|
|
|
cd Server
|
2024-09-19 10:56:38 +00:00
|
|
|
makensis -DVERSION=$VERSION install.nsi
|
2024-09-18 20:02:26 +00:00
|
|
|
rm -f tewi.exe tewi-service.exe
|
|
|
|
cd ..
|