Skip to content

feat: Sparkle 2 auto-update, Developer ID signing + notarization (#17, #7) - #21

Merged
nesquena-hermes merged 4 commits into
mainfrom
feature/sparkle-autoupdate
Apr 17, 2026
Merged

nesquena-hermes merged 4 commits into
mainfrom
feature/sparkle-autoupdate

Conversation

@nesquena-hermes

Copy link
Copy Markdown
Collaborator

What this does

Closes #17, closes #7.

Sparkle 2 auto-update

  • Adds Sparkle 2 as a SwiftPM dependency
  • Wires SPUStandardUpdaterController in AppDelegate with feed URL https://get-hermes.ai/appcast.xml
  • Adds Check for Updates… menu item under the app menu
  • SUPublicEDKey and SUFeedURL embedded in Info.plist via CI workflow

Developer ID signing + notarization

  • New Entitlements.plist (network client + microphone, no sandbox — required for SSH tunnel)
  • CI workflow updated to import Developer ID cert, sign with hardened runtime, notarize via notarytool, and staple the ticket
  • Users will no longer see the Gatekeeper warning on first launch

Sparkle appcast support

  • CI generates the ed25519 signature for each DMG using sign_update
  • appcast.xml template added to repo root (needs to be published to get-hermes.ai/appcast.xml — next step)

WKWebView navigation guard (#7)

  • decidePolicyFor navigationAction implemented in BrowserWindowController
  • localhost and 127.0.0.1 allowed through
  • Configured remote host (SSH mode) allowed through
  • All other http/https URLs open in Safari via NSWorkspace
  • file:// blocked entirely

GitHub secrets required (all 6 already added)

  • DEVELOPER_ID_APPLICATION_CERT_P12
  • DEVELOPER_ID_CERT_PASSWORD
  • APPLE_ID
  • APPLE_ID_PASSWORD
  • APPLE_TEAM_ID
  • SPARKLE_PRIVATE_KEY

What's still needed after merge

  1. Build locally on a Mac to verify Sparkle.framework embeds correctly
  2. Publish appcast.xml to the gh-pages branch (get-hermes.ai/appcast.xml)
  3. Tag v2.0.0 to trigger the first fully signed+notarized release

Hermes Agent added 4 commits April 17, 2026 01:46
…guard (#17, #7)

- Add Sparkle 2 as SwiftPM dependency (Package.swift)
- Wire SPUStandardUpdaterController in AppDelegate with feed URL
- Add Check for Updates menu item
- Add WKWebView navigation guard: localhost allowed, all other links open in Safari, file:// blocked (#7)
- Add Entitlements.plist for hardened runtime (network + microphone, no sandbox)
- Update build-release.yml: Developer ID signing, notarization via notarytool, stapling, Sparkle ed25519 signature generation
- Add SUPublicEDKey and SUFeedURL to Info.plist in CI workflow
- Add appcast.xml template (to be published at get-hermes.ai/appcast.xml)
@nesquena-hermes
nesquena-hermes merged commit 4a9d549 into main Apr 17, 2026
1 check passed
@nesquena-hermes
nesquena-hermes deleted the feature/sparkle-autoupdate branch April 17, 2026 01:56
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.

feat: auto-update support (GitHub API banner or Sparkle) feat: WKWebView navigation guard — external links open in Safari

1 participant