aboutsummaryrefslogtreecommitdiffstats
path: root/signdll.bash
diff options
context:
space:
mode:
Diffstat (limited to 'signdll.bash')
-rwxr-xr-xsigndll.bash19
1 files changed, 19 insertions, 0 deletions
diff --git a/signdll.bash b/signdll.bash
new file mode 100755
index 0000000..1b0a119
--- /dev/null
+++ b/signdll.bash
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [ -z "$BNS_CERT" ]
+then
+ die "$0: Please set BNS_CERT to the bns signing certificate for windows"
+fi
+
+if [ -z "$BNS_CERT_PASS" ]
+then
+ die "$0: Please set BNS_CERT_PASS to the password for the $BNS_CERT signing key"
+fi
+
+which osslsigncode > /dev/null
+if [ $? -ne 0 ]
+then
+ echo "Installing osslsigncode"
+ brew install osslsigncode || die "Could not install osslsigncode"
+fi
+osslsigncode sign -pkcs12 "$BNS_CERT" -pass "$BNS_CERT_PASS" -in dll/systray_unsigned.dll -out dll/systray.dll || die "Could not sign windows dll"