source: Main/trunk/make-installer.sh@ 399

Last change on this file since 399 was 355, checked in by Nishi, on Oct 16, 2024 at 6:28:09 PM

adding documents

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 731 bytes
Line 
1#!/bin/sh
2# $Id: make-installer.sh 355 2024-10-16 09:28:09Z nishi $
3
4if [ "x$1" = "x" ]; then
5 echo "Usage: $0 win32|win64|vc6|bcc [description]"
6 exit 1
7fi
8
9fail() {
10 rm -f tewi.exe
11 rm -f generated.conf
12 rm -f itworks.html
13 exit 1
14}
15
16rm -rf Tewi
17rm -f tewi.exe
18rm -f itworks.html
19rm -f generated.conf
20rm -f install.exe
21rm -f tewi.7z
22
23VERSION=`make get-version`
24
25make clean || fail
26make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
27cp Server/tewi.exe tewi.exe
28cd Server
29../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
30../Tool/itworks > ../itworks.html
31makensis -DVERSION=$VERSION -DONLY_EXEC install.nsi
32cp install.exe ../install.exe
33cd ..
34rm -rf Tewi tewi.7z
357z x -oTewi install.exe
36rm -rf Tewi/'$'*
377z a tewi.7z Tewi
38rm -rf Tewi
39rm tewi.exe
40rm itworks.html
41rm generated.conf
Note: See TracBrowser for help on using the repository browser.