diff packaging/win-createpackage.sh.in @ 922:180daa3ecbec

Add signing for windows installer
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 21 Aug 2014 14:59:32 +0200
parents 43933a605482
children 62b832d0b839
line wrap: on
line diff
--- a/packaging/win-createpackage.sh.in	Thu Aug 21 14:50:13 2014 +0200
+++ b/packaging/win-createpackage.sh.in	Thu Aug 21 14:59:32 2014 +0200
@@ -47,4 +47,10 @@
     -Dsize=$EST_SIZE \
     -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
 
+osslsigncode sign -certs @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.pem \
+   -key @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key \
+   -h sha256 -in @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe \
+   -out @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@-signed.exe
+mv @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@-signed.exe CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe
+
 rm -r $TMPDIR

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