Repository navigation
feat(updates): auto-update with Sparkle - #3
Closed
fabiomsnunes wants to merge 5 commits into
Closed
fabiomsnunes wants to merge 5 commits into
fabiomsnunes wants to merge 5 commits into
Conversation
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. Worth a look (not blocking)
What was checked
WPlus Code Review · commit 96956af · 114 s |
Add Sparkle 2 with a 'Check for Updates…' menu item. The release workflow signs the .dmg with the EdDSA key (SPARKLE_ED_PRIVATE_KEY) and publishes a one-item appcast.xml next to it, so SUFeedURL can point at releases/latest/download/appcast.xml. sign-app.sh now also signs the Autoupdate helper, which has no bundle extension.
The hardened runtime turns on library validation, which only loads frameworks signed with the app's Apple Team ID. The self-signed certificate has no Team ID, so dyld refused the embedded Sparkle framework and the app died at launch. The hardened runtime is only needed for notarisation, which these builds skip.
…ot be read A failed read logged only 'No focused window', which hid whether the cause was a missing grant (-25211) or an app that does not publish its windows.
… from 1.0.2 Tested 1.0.2 -> 1.1: the old ad-hoc entry stays in the list switched on, AXIsProcessTrusted reports true, but every AX read fails with -25211, so onboarding never shows and shortcuts do nothing until the entry is reset.
Sparkle compares CFBundleVersion, so a release that bumps only MARKETING_VERSION is never offered to anyone. Compare against the published appcast and fail the release instead.
fabiomsnunes
force-pushed
the
feat/sparkle
branch
from
November 17, 2026 17:10
7cb03db to
96956af
Compare
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.
Stacked on #2.
SUFeedURL=releases/latest/download/appcast.xml,SUPublicEDKeyinSupport/WindowLatch-Info.plist(merged with the generated Info.plist).scripts/make-appcast.shwrites a one-item appcast signed withSPARKLE_ED_PRIVATE_KEY; the release workflow downloads the Sparkle tools (pinned by SHA-256) and publishesappcast.xmlnext to the .dmg. It fails if the tag does not matchMARKETING_VERSION.sign-app.sh: signs Sparkle'sAutoupdatehelper too, and drops the hardened runtime: with a self-signed certificate (no Team ID), library validation refusedSparkle.frameworkand the app crashed at launch.Tested locally end to end (feed served from 127.0.0.1): 1.1.2 installed from a quarantined .dmg (Open Anyway once), Accessibility granted, window moved; Check for Updates → 1.1.3 downloaded, EdDSA verified, installed and relaunched with no Gatekeeper prompt and no quarantine on the new app; windows moved right after the relaunch without granting again.
Found along the way: coming from 1.0.2 the stale ad-hoc entry stays on and
AXIsProcessTrustedreturns true while every AX call fails with -25211. Documented in the README (reset once).