Repository navigation
Automatic updates with Sparkle, and republish 0.1.0 with them - #9
Conversation
- PortsUpdater, a small program that links Sparkle 2.10.0. The menu bar agent starts it a minute after launch and once a day, so Sparkle is in memory only while it checks. It asks before installing, then quits the old menu bar item so the relaunch starts the new copy. The agent also restarts itself if its app is replaced underneath it. - Gear menu: Check for Updates..., and Check Automatically (on by default). - The release workflow signs the zip with the EdDSA key in the SPARKLE_ED_PRIVATE_KEY secret and publishes appcast.xml with each release. Installed copies read releases/latest/download/appcast.xml. - A release that already exists has its files replaced, so this build can go out under the v0.1.0 link people already have. - Version 0.1.0: the 0.1.1 changes fold into it, dated 2026-11-08. - README: the one network request, what GitHub sees, and that updates install only after you agree and only if signed with this key. Tested locally: a 0.1.0 copy with its menu bar item running found a signed 0.1.9 on a local feed, showed "A new version of Ports is available!", installed after Install Update and Install and Relaunch, and the new copy took over. swift test: 19 pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Why
People are downloading 0.1.0 now, and that build has no way to update itself. This adds updates and republishes 0.1.0 with them, so everyone who downloads from today gets every future version.
What changes
PortsUpdater: a small program inside the app that links Sparkle 2.10.0. The menu bar agent starts it a minute after launch and then once a day, so Sparkle is only in memory while it checks; the agent stays at about 12 MB. It asks before installing. Before it installs, it quits the old menu bar item so Sparkle's relaunch starts the new copy. As a fallback, the agent restarts itself if its app is replaced while it runs.SPARKLE_ED_PRIVATE_KEYsecret (scripts/appcast.sh) and publishesappcast.xmlwith each release. Installed copies readreleases/latest/download/appcast.xml.Checked
SUUpdateValidator.mat 2.10.0).scripts/appcast.shsigns a zip and writes valid XML, tested with a throwaway key.swift test: 19 tests pass.Before releasing
The
SPARKLE_ED_PRIVATE_KEYsecret has to be set. The release workflow stops if it's missing.🤖 Generated with Claude Code
Summary by CodeRabbit