Repository navigation
Stable signing and Sparkle auto-update - #5
Merged
Merged
Conversation
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
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.
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.