Add pre/postinstall scripts for the menu bar.

This commit is contained in:
Frank Denis
2012-08-01 17:03:43 -07:00
parent be69e9d200
commit 3a4e290079
3 changed files with 28 additions and 2 deletions
@@ -1668,9 +1668,19 @@
<key>PACKAGE_SCRIPTS</key>
<dict>
<key>POSTINSTALL_PATH</key>
<dict/>
<dict>
<key>PATH</key>
<string>/Users/j/OpenDNS/DNSCrypt/OSX/dnscrypt-osx-client/DNSCrypt-OSX-Installer/Scripts/dnscrypt-menubar-postinstall.sh</string>
<key>PATH_TYPE</key>
<integer>0</integer>
</dict>
<key>PREINSTALL_PATH</key>
<dict/>
<dict>
<key>PATH</key>
<string>/Users/j/OpenDNS/DNSCrypt/OSX/dnscrypt-osx-client/DNSCrypt-OSX-Installer/Scripts/dnscrypt-menubar-preinstall.sh</string>
<key>PATH_TYPE</key>
<integer>0</integer>
</dict>
<key>RESOURCES</key>
<array/>
</dict>
@@ -0,0 +1,8 @@
#! /bin/sh
exec 2>/dev/null
/bin/launchctl load -D local -S Aqua
/bin/launchctl start com.opendns.osx.DNSCryptMenuBar
exit 0
@@ -0,0 +1,8 @@
#! /bin/sh
exec 2>/dev/null
/bin/launchctl stop com.opendns.osx.DNSCryptMenuBar
/bin/launchctl remove com.opendns.osx.DNSCryptMenuBar
exit 0