Replies: 1 comment
-
Please see #2452 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi, we are using
.pkg
distribution for our Sparkle updates, and we would like to make things more automated. We use our custom drivers and directly usingSPUUpdater
, and the idea is we download automatically the updates and only inform the user once before we need to ask for admin password, which is happening when extraction starts.Is it possible to add a new delegate method for
SPUUpdaterDelegate
which only continues to extraction if reply block is called, like below:Possible Fix
and with new method in the
SPUUpdaterDelegate.h
:So flow would be like:
SPUUpdater.checkForUpdates
func showUpdateFound(with appcastItem: SUAppcastItem, state: SPUUserUpdateState, reply: @escaping (SPUUserUpdateChoice) -> Void)
reply(.install)
updater:shouldStartExtracting:invocation:
and only continues to extract if it's responded and invocation is called by the app.I can create a pull request as well, posted as an issue to discuss first.
Thanks and best
Version
2.5.2, 2.6.0
Beta Was this translation helpful? Give feedback.
All reactions