Mac .pkg building using Packages (third party app) instead of old bootstrapping .app and installer script.

This commit is contained in:
Adam Ierymenko 2015-05-17 21:24:02 -07:00
commit 89027d78ac
7 changed files with 1025 additions and 188 deletions

14
ext/installfiles/mac/preinst.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ -f /Library/LaunchDaemons/com.zerotier.one.plist ]; then
launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
sleep 1
killall zerotier-one
sleep 1
killall -9 zerotier-one
fi
cd /Applications
rm -rf "ZeroTier One.app"