Skip to content

How to delay or prevent Sparkle updates during internal app updates? #2669

Closed Answered by zorgiepoo
honghoker asked this question in Q&A
Discussion options

You must be logged in to vote

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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@honghoker
Comment options

Answer selected by honghoker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants