Relaunch daemon after update #2572
Replies: 1 comment 5 replies
-
Package installations cannot be done silently and aren't generally recommended. SMJobBless is available on older OS's where SMAppService isn't (assuming this is a root running daemon, not a user running agent; otherwise there should be other alternatives).
Furthermore, this approach of using Sparkle is wrong. The user can manually update your application without Sparkle. So whatever you need to do needs to generally work in situations where Sparkle isn't used. |
Beta Was this translation helpful? Give feedback.
-
Our app is also running a daemon. We load a
.plist
file containingWe're trying to update the app in the background. Before the app is updated, we're unloading the job. This works with the following code, but the daemon reload isn't working. How should we be reloading the job after update?
Here's the
updaterDelegate
updaterWillRelaunchApplication
is this the right place to load the.plist
file again? We're looking to support macOS 12+ so haven't considered usingSMAppService
yet. The update is a zip of the.app
.I haven't tried using a
.pkg
which might help on this front since it already includes a script to load the daemon. Would it still require user intervention if running as root or could it be silently installed?Beta Was this translation helpful? Give feedback.
All reactions