If I am passing Daemon as host bundle to update complete pkg, does Sparkle 2.0 supports that ? #2237
Replies: 2 comments 6 replies
-
You can run the updater from a root daemon but you cannot show UI or AppKit code from a root-running daemon (or you're not supposed to). So that would involve using a custom SPUUserDriver that doesn't use any GUI (sparkle-cli does this as an example). That also means your daemon can't be an "application" because applications that users interact with don't run as root. Sparkle uses the applicationBundle to ensure it will safely install an update when the application is no longer running, and to let the user quit/relaunch the app for installation. These type of interactions are tied to regular user-running apps and there this doesn't work for root running processes. The hostBundle lastly is the Sparkle-based bundle you want to update. Often this is the same as the application bundle (it may differ for example if the hostBundle is a plug-in bundle and the app bundle is the one that loads the plug-in).
I think Sparkle logs the bundle IDs in Console here. What were they and how were they not what you expected? |
Beta Was this translation helpful? Give feedback.
-
Thank you once again
I apologies for many queries. I am just trying to understand what all changes is needed to support Sparkle 2.2 version. |
Beta Was this translation helpful? Give feedback.
-
Description of the problem
Do you use Sandboxing in your app? - No.
Version of
Sparkle.framework
in the latest version of your app- Sparkle 2.2Version of
Sparkle.framework
in the old version of app that your users have (or N/A) - Sparkle 1.24Sparkle's output from Console.app
Steps to reproduce the behavior
Does I need to change any thing to support initialisation from daemon.
Beta Was this translation helpful? Give feedback.
All reactions