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

Last change on this file since 229 was 222, checked in by Nishi, on Oct 3, 2024 at 12:09:40 PM

fix permission

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 578 bytes
Line 
1#!/bin/sh
2# $Id: make-installer.sh 222 2024-10-03 03:09:40Z 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 -f install.exe
17
18VERSION=`make get-version`
19
20make clean || fail
21make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
22cp Server/tewi.exe tewi.exe
23cd Server
24../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
25../Tool/itworks > ../itworks.html
26makensis /inputcharset utf8 -DVERSION=$VERSION -DONLY_EXEC install.nsi
27cp install.exe ../install.exe
28cd ..
29rm tewi.exe
30rm itworks.html
31rm generated.conf
Note: See TracBrowser for help on using the repository browser.