Repository navigation
feat: check for and install updates in the app, on a stable or beta track - #100
Merged
Merged
Conversation
This was referenced Oct 20, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 23, 2026
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.
Problem
StableBar can't tell you that a new version exists or install it, and you can't see which version you run. Fixes #22.
This branch includes #59 (the About tab with the version), rebased onto
main, because the update controls live in its About section.Changes
AppUpdateis Sparkle's user driver, so Sparkle still checks, downloads, verifies and installs.betachannel, so betas get whichever is newer, a beta or a stable release. An installed beta starts on Beta, and keeps it after updating to a stable release. The track is stored inUserDefaults, likesetupCompleted.prepare-app-info.shkeepsSUFeedURLonly in Developer ID-signed release builds: an ad-hoc build can't prove an update comes from the same developer, so ad-hoc and local builds don't check, and About links to the releases page instead.build.shembedsSparkle.framework, adds the@executable_path/../Frameworksrpath and, when signing with an identity, re-signs Sparkle's helpers before the framework and the app, as Sparkle's documentation shows.ci:commit).import-developer-id.shimports the Developer ID certificate and the notarization key from the repository's secrets into a temporary keychain; without them, builds stay ad-hoc signed. Both jobs then sign and notarize, andpublish-appcast.shadds the release toappcast.xmlon a rollingappcastprerelease, like the store's index: betas on thebetachannel, each item with its release notes and a link.generate_appcastmarks Apple silicon builds, so Intel Macs aren't offered them. The secrets and variables are already set.Testing
swift test: 310 tests pass. New ones cover which builds keep the feed, the release notes parsing (GitHub's generated notes and semantic-release's), and the tile staying at the bar's right end at every stage.accepted, source=Notarized Developer ID. Sparkle's helpers carry the team ID and hardened runtime, and the app launches with library validation.publish-appcast.shwith a stand-in forgh: stable, beta, then stable keeps both channels, each item with its own notes and link. The stored certificate secret imports into a throwaway keychain and CI's lookup finds the identity.main.Merging
Rebase merge or merge commit, so each
feat:,fix:andci:commit reaches the changelog. Merging this also lands #59's two commits; alternatively merge #59 first and rebase this branch.Installs from today's ad-hoc betas can't verify a Developer ID update, so their users install the first signed build by hand once.
Claude Opus 5.5 via Claude Code in T3 Code.