Repository navigation
fix(plugins): stage plugin builds for the app update so it takes one relaunch - #4837
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
didExtractUpdate, before it installs on quit or on Install), the running app stages each installed registry plugin's build for the new app (the appcast'ssparkle:version) into the staged-updates folder, with the same download, checksum and signature checks as the plugin updater.applyStagedUpdateschecks it against its own kits at launch and drops one that fails.UpdateChannel.plugins(ofAppVersion:)replacesBundle.isPrerelease; its two tests inBundleAppInfoTestsmove toUpdateChannelTests.Test plan
AppUpdatePluginStagingTests: the staging decision (release at the new build only, channel of the new version, this Mac's OS), targets, staging with a fake download, a failed download, no manifest, updating off, the launch applying the staged build with no pass target left, and following Sparkle's prepared update and its abort, and a file staged while another plugin downloads.verify.sh --jobs 4build, lint on the changed files, and the tests in the plugin install, update pass, installer, update channel and update status suites, all passing locally.