How can I get more control by using SPUStandardUpdaterController? #2461
Replies: 6 comments 4 replies
-
If you want a custom user interface instead of Sparkle's standard user interface for showing the update to the user you will need your own SPUUserDriver and need to instantiate a SPUUpdater with it. (Sounds like what you're asking). If you want to download the update automatically in the background without disrupting the user you should use SUAutomaticallyUpdate. As discussed in #2452 do note before extraction in some cases the user may be asked to authorize installing the update (if needed, depending on how their system is set up). |
Beta Was this translation helpful? Give feedback.
-
Now I can have my app download updates in the background! But I still can't get the download progress in real time. I used a How can I get the download progress in real time and how to start the update directly through code. |
Beta Was this translation helpful? Give feedback.
-
You can show download progress in your custom view if you have your own |
Beta Was this translation helpful? Give feedback.
-
I understand |
Beta Was this translation helpful? Give feedback.
-
I am not that well-versed with SwiftUI. Here is an untested template. You will need to fill in the gaps. For any of the Sparkle related APIs, refer to their documentation. |
Beta Was this translation helpful? Give feedback.
-
Thanks your example, I understand most of it, but I do have a question, how can I handling error in my custom user driver. Now, once error caused, |
Beta Was this translation helpful? Give feedback.
-
Hello:
I am using Sparkle 2.5.1 to update my app, which is a SwiftUI app, provided by SwiftUI Lifecycle.
I use my custom update view, rather than the spark of the default view, and keep the sparks check the update and download the update background (using
checkForUpdatesInBackground ()
), to ensure that the update messages can be sent to my custom view is correct.Now, I want my app to display the download progress, but I can't find any way to get a value for the download progress.
After extraction, I wanted my customizations to call the install update feature immediately, instead of calling the Sparkle Update dialog box and pressing it again, which I thought was too fragmented an experience.
How can I implement these features in my app?
Beta Was this translation helpful? Give feedback.
All reactions