rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Release a native macOS app to GitHub with DMG packaging and Sparkle appcast updates. Use this skill whenever the user wants to publish a new version, create a release, ship an update, push a release to GitHub, or update the appcast. Also trigger when the user mentions DMG creation, Sparkle signing, notarization, archiving, or anything related to distributing a new version of their macOS app. This covers the full release pipeline: archive, notarize, export, create DMG, sign with Sparkle EdDSA, update appcast.xml, git push, and GitHub release creation.
This skill covers the full release pipeline for distributing a native macOS app outside the Mac App Store via GitHub Releases with Sparkle auto-update support.
Bump version → Archive → Notarize → Export → Create DMG → Sign DMG → Update appcast.xml → Git push → GitHub Release
The user needs these tools installed:
| Tool | Install | Purpose |
|---|---|---|
create-dmg | brew install create-dmg | Creates the DMG installer |
gh | brew install gh | Creates GitHub releases |
git | Built-in | Pushes appcast changes |
Sparkle sign_update | Built automatically when the project is built with Sparkle | EdDSA-signs the DMG |
The sign_update binary lives in DerivedData after building the project in Xcode:
find ~/Library/Developer/Xcode/DerivedData -name "sign_update" -type f 2>/dev/null | head -1
In Xcode, update:
MARKETING_VERSION (e.g., 1.2) -- the user-facing versionCURRENT_PROJECT_VERSION (e.g., 5) -- the build number (must be unique per release)Or via command line:
# Check current values
grep -E "MARKETING_VERSION|CURRENT_PROJECT_VERSION" YourApp.xcodeproj/project.pbxproj | head -4
Product > Archive. This creates a release build with the proper signing identity.
In the Archives organizer:
~/Downloads/YourApp.appcreate-dmg \
--volname "YourApp" \
--window-pos 200 120 \
--window-size 660 400 \
--icon-size 160 \
--icon "YourApp.app" 180 170 \
--app-drop-link 480 170 \
--hide-extension "YourApp.app" \
~/Downloads/YourApp.dmg \
~/Downloads/YourApp.app
/path/to/sign_update ~/Downloads/YourApp.dmg
This outputs the EdDSA signature and file length:
sparkle:edSignature="BASE64..." length="12345"
Save both values for the appcast.
Add a new <item> at the top of the <channel> in your appcast.xml:
<item>
<title>Version 1.2 (Build 5)</title>
<pubDate>Mon, 26 May 2026 12:00:00 +0000</pubDate>
<sparkle:version>5</sparkle:version>
<sparkle:shortVersionString>1.2</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
<description><![CDATA[<ul><li>Feature one</li><li>Bug fix two</li></ul>]]></description>
<enclosure url="https://github.com/OWNER/REPO/releases/download/v1.2/YourApp.dmg"
type="application/octet-stream"
sparkle:edSignature="THE_SIGNATURE_FROM_STEP_5"
length="THE_LENGTH_FROM_STEP_5" />
</item>
The pubDate should be RFC 2822 format. Generate it:
date -R
git add appcast.xml
git commit -m "Release v1.2 appcast"
git push origin main
gh release create v1.2 \
~/Downloads/YourApp.dmg \
--title "v1.2" \
--notes "- Feature one
- Bug fix two"
For frequent releases, build a CLI tool that automates steps 4-8. See references/release-pipeline.md for a template Go CLI that handles DMG creation, signing, appcast updates, and GitHub release creation in one command.
The CLI should:
sign_update in DerivedData automaticallyplutilThis repo includes a Go CLI that automates steps 4-8 (DMG creation through GitHub release) in a single command. It reads configuration from a release.json file in your project root.
release.json in your project root (see cli/release.example.json):{
"app_name": "MyApp",
"github_repo": "owner/myapp"
}
Only app_name and github_repo are required. Everything else has sensible defaults:
| Field | Default | Description |
|---|---|---|
bundle_name | {app_name}.app | The .app bundle filename |
dmg_name | {app_name}.dmg | Output DMG filename |
git_branch | main | Branch to push appcast to |
min_system_version | 14.0 | Sparkle minimum macOS version |
appcast_file | appcast.xml | Appcast filename in repo root |
derived_data_prefixes | ["{app_name}-"] | DerivedData prefixes to search for sign_update |
go run github.com/fayazara/macos-app-skills/release/cli@latest
Or clone this repo and run locally:
go run ./release/cli
The CLI is interactive -- it prompts for release notes and asks for confirmation before proceeding. It must be run in a terminal the user can interact with.
release.json by walking up from the current directorycreate-dmg, gh, git, and Sparkle's sign_update are available~/Downloads/ (reads version, build, Sparkle keys from Info.plist)create-dmgsign_update (EdDSA)appcast.xml with the new release entry| Problem | Solution |
|---|---|
sign_update not found | Build the project in Xcode first so DerivedData has the Sparkle artifacts |
gh auth failure | Run gh auth login |
| Duplicate build number in appcast | Bump CURRENT_PROJECT_VERSION before archiving |
| Notarization fails | Check signing identity, entitlements, and hardened runtime settings |
| DMG is too large | Check for debug symbols or unnecessary frameworks in the export |
| App won't update | Verify SUFeedURL points to the raw appcast URL, not the GitHub page URL |
The simplest hosting: commit appcast.xml to your GitHub repo and use the raw URL:
https://raw.githubusercontent.com/OWNER/REPO/main/appcast.xml
This must match SUFeedURL in your app's Info.plist.
MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days