Improve postinstall scripts and add a signature script.

This commit is contained in:
Frank Denis
2012-08-02 22:12:47 -07:00
parent af55b22493
commit 01368b42ff
4 changed files with 30 additions and 8 deletions
@@ -1229,7 +1229,7 @@
<key>AUTHENTICATION</key>
<integer>1</integer>
<key>CONCLUSION_ACTION</key>
<integer>0</integer>
<integer>2</integer>
<key>IDENTIFIER</key>
<string>com.opendns.osx.dnscryptClient.DNSCrypt</string>
<key>LOCATION</key>
@@ -1722,7 +1722,7 @@
<key>AUTHENTICATION</key>
<integer>1</integer>
<key>CONCLUSION_ACTION</key>
<integer>0</integer>
<integer>4</integer>
<key>IDENTIFIER</key>
<string>com.opendns.osx.dnscryptClient.DNSCrypt-Menubar</string>
<key>LOCATION</key>
@@ -2,7 +2,9 @@
exec 2>/dev/null
/bin/launchctl load -D local -S Aqua
/bin/launchctl load \
'/Library/LaunchAgents/com.opendns.osx.DNSCryptMenuBar.plist'
/bin/launchctl start com.opendns.osx.DNSCryptMenuBar
exit 0
@@ -19,11 +19,13 @@ if [ $? != 0 ]; then
'/Library/Application Support/DNSCrypt/tickets'
fi
/bin/launchctl load -D local
/bin/launchctl start com.opendns.osx.DNSCryptAfterboot
/bin/launchctl start com.opendns.osx.DNSCryptConsoleChange
/bin/launchctl start com.opendns.osx.DNSCryptControlChange
/bin/launchctl start com.opendns.osx.DNSCryptNetworkChange
for service in com.opendns.osx.DNSCryptAfterboot \
com.opendns.osx.DNSCryptConsoleChange \
com.opendns.osx.DNSCryptControlChange \
com.opendns.osx.DNSCryptNetworkChange; do
/bin/launchctl load "/Library/LaunchDaemons/${service}.plist"
/bin/launchctl start "$service"
done
/usr/bin/touch '/Library/Application Support/DNSCrypt/control'
+18
View File
@@ -0,0 +1,18 @@
#! /bin/sh
VERSION='0.12-dev'
cd build || exit 1
(
cd DNSCrypt.mpkg/Contents/Packages || exit 1
for pkg in *pkg; do
rm -fr "x-${pkg}"
mv "$pkg" "x-${pkg}"
productsign --sign 'Developer ID Installer' "x-${pkg}" "$pkg"
rm -fr "x-${pkg}"
done
)
rm -fr DNSCrypt-OSX.mpkg
productsign --sign 'Developer ID Application' DNSCrypt.mpkg DNSCrypt-OSX.mpkg
zip -9 -r "dnscrypt-osx-gui-${VERSION}.zip" DNSCrypt-OSX.mpkg