annotate packaging/win-createpackage.sh.in @ 967:9494d4ee1d4e

Add fallback when CMAKE_STRIP is not found and warn about it
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 28 Aug 2014 12:57:18 +0200
parents 62b832d0b839
children 1c1964c27b39 892f923c18d0
rev   line source
588
a4e75d90d3f6 Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents: 552
diff changeset
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
405
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
2 # Software engineering by Intevation GmbH
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
3 #
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
4 # This file is Free Software under the GNU GPL (v>=2)
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
5 # and comes with ABSOLUTELY NO WARRANTY!
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
6 # See LICENSE.txt for details.
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 340
diff changeset
7
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
8 #!/bin/bash
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
9
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10 #NSSDIR is hackish as this will be replaced by static compiling
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
11 # anyway
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 TMPDIR=$(mktemp -d)
860
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
14 TMPINST=$(mktemp)
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15
490
2e78d08ff46e Rename to trustbridge in packaging
Andre Heinecke <aheinecke@intevation.de>
parents: 410
diff changeset
16 EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe)
963
62b832d0b839 (issue89) Package help for windows
Andre Heinecke <andre.heinecke@intevation.de>
parents: 922
diff changeset
17 HELPDIR=@CMAKE_BINARY_DIR@/manuals/help-manual/html
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19 cp $EXEFILES $TMPDIR
963
62b832d0b839 (issue89) Package help for windows
Andre Heinecke <andre.heinecke@intevation.de>
parents: 922
diff changeset
20 cp -r $HELPDIR $TMPDIR/doc
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21
794
fdc15f0cfdd8 (issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 588
diff changeset
22 EST_SIZE=$(du -s $TMPDIR | cut -f 1)
fdc15f0cfdd8 (issue61) NSIS Write uninstall information and make URL configurable.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 588
diff changeset
23
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
24 echo $TMPDIR
860
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
25 export LC_ALL="de_DE.latin-1"
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
26
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
27 makensis -Dfiles_dir=$TMPDIR \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
28 -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
29 -Dversion_number=@PROJECT_VERSION@ \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
30 -Dsetupname="$TMPINST" \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
31 -Dproductname="TrustBridge" \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
32 -Dpath_sep="/" \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
33 -Dinfo_url="http://wald.intevation.org/projects/trustbridge/" \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
34 -Dsize=$EST_SIZE \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
35 -DWRITE_UNINSTALLER \
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
36 -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
37 wine $TMPINST /S || true
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
38 mv ~/.wine/drive_c/tmp-uninstaller/Uninstall.exe $TMPDIR
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
39 rmdir ~/.wine/drive_c/tmp-uninstaller
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
40 rm $TMPINST
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
41
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
42 makensis -Dfiles_dir=$TMPDIR \
588
a4e75d90d3f6 Use latin1 in NSIS (fixes encoding errors) Fix command line installation dir.
Andre Heinecke <aheinecke@intevation.de>
parents: 552
diff changeset
43 -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
495
7a8f5b85fd9a Dynamically generate version information from HG
Andre Heinecke <aheinecke@intevation.de>
parents: 490
diff changeset
44 -Dversion_number=@PROJECT_VERSION@ \
500
4f972b1f4996 Fix packaging information generation
Andre Heinecke <aheinecke@intevation.de>
parents: 495
diff changeset
45 -Dsetupname="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe" \
410
3132ba0a305d Rename installer to trustbridge
Andre Heinecke <aheinecke@intevation.de>
parents: 405
diff changeset
46 -Dproductname="TrustBridge" \
552
fc61ef6612b0 Fix parameter order in makensis call
Andre Heinecke <aheinecke@intevation.de>
parents: 549
diff changeset
47 -Dpath_sep="/" \
852
637948e9e32d (issue61) Change temporary link into wald from https to http
Andre Heinecke <andre.heinecke@intevation.de>
parents: 834
diff changeset
48 -Dinfo_url="http://wald.intevation.org/projects/trustbridge/" \
832
170b13ea05ee (Issue10) Force encoding to be latin-1 during installer creation.
Andre Heinecke <andre.heinecke@intevation.de>
parents: 794
diff changeset
49 -Dsize=$EST_SIZE \
552
fc61ef6612b0 Fix parameter order in makensis call
Andre Heinecke <aheinecke@intevation.de>
parents: 549
diff changeset
50 -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
860
43933a605482 Fix tmp-createpackage and rename it to win-createpackge
Andre Heinecke <andre.heinecke@intevation.de>
parents: 852
diff changeset
51
922
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
52 osslsigncode sign -certs @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.pem \
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
53 -key @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key \
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
54 -h sha256 -in @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe \
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
55 -out @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@-signed.exe
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
56 mv @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@-signed.exe CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe
180daa3ecbec Add signing for windows installer
Andre Heinecke <andre.heinecke@intevation.de>
parents: 860
diff changeset
57
340
9001eaa55549 Add first draft of packaging to build upon
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
58 rm -r $TMPDIR

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