comparison packaging/win-createpackage.sh.in @ 860:43933a605482

Fix tmp-createpackage and rename it to win-createpackge
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 04 Aug 2014 17:57:11 +0200
parents packaging/tmp-createpackage.sh.in@637948e9e32d
children 180daa3ecbec
comparison
equal deleted inserted replaced
859:df6f3b1cc41c 860:43933a605482
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 # Software engineering by Intevation GmbH
3 #
4 # This file is Free Software under the GNU GPL (v>=2)
5 # and comes with ABSOLUTELY NO WARRANTY!
6 # See LICENSE.txt for details.
7
8 #!/bin/bash
9
10 #NSSDIR is hackish as this will be replaced by static compiling
11 # anyway
12
13 TMPDIR=$(mktemp -d)
14 TMPINST=$(mktemp)
15
16 EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe)
17
18 cp $EXEFILES $TMPDIR
19
20 EST_SIZE=$(du -s $TMPDIR | cut -f 1)
21
22 echo $TMPDIR
23 export LC_ALL="de_DE.latin-1"
24
25 makensis -Dfiles_dir=$TMPDIR \
26 -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
27 -Dversion_number=@PROJECT_VERSION@ \
28 -Dsetupname="$TMPINST" \
29 -Dproductname="TrustBridge" \
30 -Dpath_sep="/" \
31 -Dinfo_url="http://wald.intevation.org/projects/trustbridge/" \
32 -Dsize=$EST_SIZE \
33 -DWRITE_UNINSTALLER \
34 -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
35 wine $TMPINST /S || true
36 mv ~/.wine/drive_c/tmp-uninstaller/Uninstall.exe $TMPDIR
37 rmdir ~/.wine/drive_c/tmp-uninstaller
38 rm $TMPINST
39
40 makensis -Dfiles_dir=$TMPDIR \
41 -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
42 -Dversion_number=@PROJECT_VERSION@ \
43 -Dsetupname="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe" \
44 -Dproductname="TrustBridge" \
45 -Dpath_sep="/" \
46 -Dinfo_url="http://wald.intevation.org/projects/trustbridge/" \
47 -Dsize=$EST_SIZE \
48 -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
49
50 rm -r $TMPDIR

http://wald.intevation.org/projects/trustbridge/