-
Hi! 👋 I have a situation where my app performs internal updates, and I need to handle Sparkle updates appropriately during this process. Specifically:
Questions:
I've tried working with SPUUpdaterDelegate methods but haven't found a solution that gives me this level of control over the update timing. Any guidance or working examples would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The install button sends an Apple quit event to the app. There are ways via NSApplicationDelegate to cancel or delay quit (
There is also |
Beta Was this translation helpful? Give feedback.
The install button sends an Apple quit event to the app. There are ways via NSApplicationDelegate to cancel or delay quit (
-[NSApplicationDelegate applicationShouldTerminate:]
). In your case you could delay quit until your internal process is done perhaps. If you want to prevent installation you may also want to delay ordinary user quit, maybe, depends.-[SPUUpdaterDelegate updater:mayPerformUpdateCheck:error:]
is for allowing an update check to be done (at the beginning). Potentially you could disallow this if your internal update is running.-[SPUUpdater sessionInProgress]
will tell if you if an update session is running. Potentially you could delay your internal update process if this …