source: Main/trunk/installer.sh@ 128

Last change on this file since 128 was 128, checked in by Nishi, on Sep 23, 2024 at 7:19:19 PM

release 1.04

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[62]1#!/bin/sh
2# $Id: installer.sh 128 2024-09-23 10:19:19Z nishi $
3
4fail() {
5 rm -f tewi-service.exe
6 rm -f tewi.exe
[128]7 rm -f generated.conf
8 rm -f itworks.html
[79]9 mv config.h.bak config.h
[62]10 exit 1
11}
12
[80]13rm -f install-nossl.exe install-ssl.exe
14
[78]15VERSION=`make get-version`
16
[79]17sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
18
[62]19make clean || fail
20make PLATFORM=$1 -j4 || fail
21cp Server/tewi.exe tewi.exe
22make clean || fail
23make PLATFORM=$1-service -j4 || fail
24cp Server/tewi.exe tewi-service.exe
25cd Server
[128]26../Tool/genconf > ../generated.conf
27../Tool/itworks > ../itworks.html
[78]28makensis -DVERSION=$VERSION install.nsi
[79]29cp install.exe ../install-nossl.exe
[62]30rm -f tewi.exe tewi-service.exe
31cd ..
[79]32
33sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
34
35make clean || fail
36make PLATFORM=$1 -j4 || fail
37cp Server/tewi.exe tewi.exe
38make clean || fail
39make PLATFORM=$1-service -j4 || fail
40cp Server/tewi.exe tewi-service.exe
41cd Server
[128]42../Tool/genconf > ../generated.conf
43../Tool/itworks > ../itworks.html
[79]44makensis -DVERSION=$VERSION install.nsi
45cp install.exe ../install-ssl.exe
46rm -f tewi.exe tewi-service.exe
47cd ..
[128]48
49rm itworks.html
50rm generated.conf
Note: See TracBrowser for help on using the repository browser.