mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
The update cycle has changed such that even if a prior update has been downloaded automatically, the updater uses the regular scheduled check interval to resume the automatic update driver. If the impatient update check interval (default is 1 week) elapses since the last time a newer update has been downloaded in the background, the updater uses the UI scheduled driver. So if a newer superseded update is downloaded daily, the elapsed impatient check interval is also reset daily. If an update needs to be shown immediately (e.g. if it can only be downloaded), we force the next check to use a UI scheduled driver. All drivers now check if a newer update is available regardless of a current in-flight download/install. If the update is the same as the current in-flight one (or any failure occurs before loading the appcast), the in-flight one is still used. If a newer superseded update is available, the drivers use that one. For an update that has only been downloaded, this will cancel/clear the old download. For an update that has already been staged to be installed, the old update is only canceled when we submit the installer job for the new update. The two conditions we do not check for superseded updates is if the installer is ran in the system domain (requiring authorization), and updating other bundles from an external updater (to not conflict with apps self-updating themselves). This change adds a UI test to test a superseded update is downloaded and began to install automatically.