diff options
author | kali <kali@leap.se> | 2018-09-26 20:36:18 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2018-09-26 20:43:51 +0200 |
commit | b26241ce8ec2b992b4209677ea75df608964cdbf (patch) | |
tree | 237b93bf1173cd4207e960cad6ff0c3c2104a75f /vendor/github.com/getlantern/systray/signdll.bash | |
parent | f1e820ba1664cc1d3f69e15d0356552fecaf6fcd (diff) |
[pkg] vendor getlantern/systray
this is a workaround for riseup_vpn#28
Diffstat (limited to 'vendor/github.com/getlantern/systray/signdll.bash')
-rw-r--r-- | vendor/github.com/getlantern/systray/signdll.bash | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/github.com/getlantern/systray/signdll.bash b/vendor/github.com/getlantern/systray/signdll.bash new file mode 100644 index 0000000..b621328 --- /dev/null +++ b/vendor/github.com/getlantern/systray/signdll.bash @@ -0,0 +1,25 @@ +#!/bin/bash + +function die() { + echo $* + exit 1 +} + +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/systray386.dll_unsigned -out dll/systray386.dll || die "Could not sign windows 386 dll" +osslsigncode sign -pkcs12 "$BNS_CERT" -pass "$BNS_CERT_PASS" -in dll/systrayamd64.dll_unsigned -out dll/systrayamd64.dll || die "Could not sign windows 386 dll" |