/[tewi]/make-installer.sh
ViewVC logotype

Contents of /make-installer.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations)
Thu Oct 17 09:53:38 2024 UTC (4 weeks, 1 day ago) by nishi
Branch: MAIN
CVS Tags: v2_05A, v2_05, HEAD
Content type: application/x-sh
Error occurred while calculating annotation data.
update

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
16 rm -rf Tewi
17 rm -f tewi.exe
18 rm -f itworks.html
19 rm -f generated.conf
20 rm -f install.exe
21 rm -f tewi.7z
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
31 makensis -DVERSION=$VERSION -DONLY_EXEC install.nsi
32 cp install.exe ../install.exe
33 cd ..
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
39 rm tewi.exe
40 rm itworks.html
41 rm generated.conf

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev