Subversion Repositories Tewi

Rev

Rev 255 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
217 nishi 1
#!/bin/sh
2
# $Id: make-installer.sh 355 2024-10-16 09:28:09Z nishi $
3
 
4
if [ "x$1" = "x" ]; then
5
	echo "Usage: $0 win32|win64|vc6|bcc [description]"
6
	exit 1
7
fi
8
 
9
fail() {
10
	rm -f tewi.exe
11
	rm -f generated.conf
12
	rm -f itworks.html
13
	exit 1
14
}
15
 
355 nishi 16
rm -rf Tewi
17
rm -f tewi.exe
18
rm -f itworks.html
19
rm -f generated.conf
217 nishi 20
rm -f install.exe
355 nishi 21
rm -f tewi.7z
217 nishi 22
 
23
VERSION=`make get-version`
24
 
25
make clean || fail
26
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
27
cp Server/tewi.exe tewi.exe
28
cd Server
29
../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
30
../Tool/itworks > ../itworks.html
253 nishi 31
makensis -DVERSION=$VERSION -DONLY_EXEC install.nsi
217 nishi 32
cp install.exe ../install.exe
33
cd ..
255 nishi 34
rm -rf Tewi tewi.7z
35
7z x -oTewi install.exe
36
rm -rf Tewi/'$'*
37
7z a tewi.7z Tewi
38
rm -rf Tewi
217 nishi 39
rm tewi.exe
40
rm itworks.html
41
rm generated.conf