Subversion Repositories Tewi

Rev

Rev 253 | Go to most recent revision | 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 255 2024-10-04 04:08:58Z 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
 
16
rm -f install.exe
17
 
18
VERSION=`make get-version`
19
 
20
make clean || fail
21
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
22
cp Server/tewi.exe tewi.exe
23
cd Server
24
../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
25
../Tool/itworks > ../itworks.html
253 nishi 26
makensis -DVERSION=$VERSION -DONLY_EXEC install.nsi
217 nishi 27
cp install.exe ../install.exe
28
cd ..
255 nishi 29
rm -rf Tewi tewi.7z
30
7z x -oTewi install.exe
31
rm -rf Tewi/'$'*
32
7z a tewi.7z Tewi
33
rm -rf Tewi
217 nishi 34
rm tewi.exe
35
rm itworks.html
36
rm generated.conf