sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.34k stars 1.04k forks source link

Implement a programmatic cancel of an updpate #2501

Closed gaidarjimax closed 6 months ago

gaidarjimax commented 7 months ago

Hello! I am using Sparkle, more specific the SPUUpdater, to update another application. I would like to have an option to cancel an update programmatically when automaticallyDownloadsUpdates is set to true, and SPUAutomaticUpdateDriver is performing the update.

Possible Fix

The SPUAutomaticUpdateDriver as other SPUUpdateDrivers has abortUpdateWithError method which does exactly what I need, but this method is not reachable from the SPUUpdater interface, or from UserDriver, or the UpdaterDelegate that are passed to the SPUUpdater.

Thank you!