Skip to content

Stable signing and Sparkle auto-update - #5

Merged
fabiomsnunes merged 9 commits into
mainfrom
feat/auto-update
Nov 17, 2026
Merged

fabiomsnunes merged 9 commits into
mainfrom
feat/auto-update

Conversation

@fabiomsnunes

Copy link
Copy Markdown
Owner

Integration of #2 and #4: releases signed with a stable self-signed certificate (Accessibility grant survives updates) and Sparkle 2 auto-update with an EdDSA-signed appcast in GitHub Releases. Tested end to end locally (quarantined install, update, relaunch, windows move without re-granting). No release is cut by this merge; v1.1.0 needs a version bump and a tag.

fabiomsnunes and others added 9 commits November 17, 2026 16:28
Ad-hoc signing pins the designated requirement to the binary's hash, so
macOS treats every release as a new app and users have to grant
Accessibility again after each update. Re-sign the exported app with the
'WindowLatch Release' certificate, whose fingerprint scripts/sign-app.sh
pins and checks, so the requirement and the grant survive updates.
CI installs the latest SwiftFormat, whose new rule has failed the lint on
main since 2026-11-10. Formatting only, no behaviour change.
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.
build(release): sign with a stable self-signed certificate
feat(updates): auto-update with Sparkle
@fabiomsnunes
fabiomsnunes merged commit 27f0e4a into main Nov 17, 2026
1 of 2 checks passed
@fabiomsnunes
fabiomsnunes deleted the feat/auto-update branch November 17, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant