Repository navigation
fix(updater): make background checks optional and installs explicit - #565
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.
Settings said “Auto-update enabled” without an off switch. This conflated backend availability, automatic checking, and authorization to install a release (refs #531).
Add an immediate, persistent Automatically Check for Updates switch. Automatic checks remain enabled by default; users can disable them while retaining Check for Updates. macOS binds directly to Sparkle's persisted preference, without resetting it at startup. Windows/Linux persist a con-owned preference atomically, gate automatic network requests and cancel an active automatic fetch; manual checks and already-prepared downloads remain available.
Every con-managed installation now requires an explicit decision. macOS bundle policy disallows silent download/install even with an older stored opt-in, without erasing that preference. Portable updates retain separate Download and Restart actions. Package-managed installations retain their own update ownership.
Validation: 757 app tests passed; final focused updater (5) and Settings (16) tests passed, with app/CLI builds. The real Sparkle bridge probe verifies persistence, manual checks while off, and legacy opt-in suppression; packaging fixtures verify the generated plist policy. Workflow policy tests (12), actionlint, formatting, diff and docs checks passed. Isolated light/dark native UI checks verified toggling and restart persistence; a manual Sparkle check while off reached the intentionally unavailable local feed. No production settings/history were touched. Native Windows/Linux GUI lifecycle was not tested locally; their CI now runs all updater tests.