Packaging tweaks

This commit is contained in:
Nindi Gill 2022-07-01 17:46:37 +10:00
parent 2ed311a818
commit 1e902f1d3b
5 changed files with 87 additions and 8 deletions

9
Scripts/postinstall Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
identifier="com.ninxsoft.mist.helper"
launchctl bootstrap system "/Library/LaunchDaemons/$identifier.plist"
exit 0

11
Scripts/preinstall Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
identifier="system/com.ninxsoft.mist.helper"
if launchtl print "system/$identifier" ; then
launchctl bootout "system/$identifier"
fi
exit 0