
release-mac-app
macOS app release: Sparkle, notarization, GitHub Release, Homebrew, closeout.
- Installs
- 80
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/steipete/agent-scripts --skill release-mac-app- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads release-mac-app automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Mac App Release
Use for BlackBar, RepoBar, CodexBar, Trimmy, and similar Sparkle-updated macOS apps.
Rules
- Work from the app repo.
- Read
.mac-release.env; it is the repo-owned release manifest. - Use
scripts/mac-releasefrom this skill for shared release/appcast/verify work. - Execute
mac-releasedirectly so its privileged Bash shebang ignores startup hooks; if an explicit interpreter is unavoidable, use/bin/bash -p, never plainbash mac-release. - Keep app-specific build/package/sign behavior in repo scripts unless it is already manifest-driven.
- Never print private key material.
- Upload app/dSYM assets to a draft before publication. After a failure, preserve the release, tags, appcast commit, and local edits; inspect existing state and resume the failed step instead of deleting or retagging a possibly published release.
- Prefer
MAC_RELEASE_SPARKLE_OP_REFfor headless release signing when the key is in 1Password; otherwise prefer Keychain Sparkle signing.SPARKLE_PRIVATE_KEY_FILEis an explicit local override only.
Commands
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release status
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release notes [version] [output.md]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release changelog-html <version> [CHANGELOG.md]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release make-appcast <zip> [feed-url]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release verify-appcast [version]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release check-assets [tag]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release release
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release codesign-run [--with-package-secrets] -- <command> [args...]
/Users/steipete/Projects/agent-scripts/skills/release-mac-app/scripts/mac-release package-run -- <command> [args...]
verify-appcast uses only SUPublicEDKey; it needs no private key, Keychain, or 1Password access.
Manifest
Each repo owns .mac-release.env. It must contain no secrets.
Required:
MAC_RELEASE_APP_NAMEMAC_RELEASE_REPOMAC_RELEASE_BUNDLE_IDMAC_RELEASE_VERSION_FILEMAC_RELEASE_APPCASTMAC_RELEASE_FEED_URLMAC_RELEASE_DOWNLOAD_URL_PREFIXMAC_RELEASE_APP_ZIP- either
MAC_RELEASE_INFO_PLISTorMAC_RELEASE_SUPUBLIC_ED_KEY
MAC_RELEASE_PACKAGE_CMD is required only for release; status, notes, changelog-html, verify-appcast, and check-assets do not need it.
Common optional:
MAC_RELEASE_PRECHECKMAC_RELEASE_SOURCE_FILES(space-separated app helper files to source before expanding artifact names)MAC_RELEASE_DSYM_ZIPMAC_RELEASE_REQUIRE_DSYM=0for app-only releasesMAC_RELEASE_ARTIFACT_PREFIXMAC_RELEASE_TAG_SIGNEDMAC_RELEASE_TAG_FORCEMAC_RELEASE_RELEASE_BRANCHMAC_RELEASE_SPARKLE_ACCOUNTMAC_RELEASE_SPARKLE_CHANNELMAC_RELEASE_GENERATE_APPCAST_ARGSMAC_RELEASE_RUN_SPARKLE_UPDATE_TESTMAC_RELEASE_SPARKLE_OP_REF— exactop://Vault/Item/fieldreference for the Sparkle EdDSA private key. The helper resolves it inside the sharedop-worktmux session, writes only a mode-0600 temporary key file, validates its public key againstSUPublicEDKey, and removes it on success or failure.MAC_RELEASE_SPARKLE_OP_ACCOUNTandMAC_RELEASE_SPARKLE_OP_USE_SERVICE_ACCOUNToverride the primary 1Password account/service-account mode for the Sparkle reference. Service-account-backed refs should set service-account mode to1.MAC_RELEASE_SIGNING_KEY_FILE(local fallback path only; Keychain is used when the file is absent)MAC_RELEASE_EXTRA_ASSET_PATTERNSMAC_RELEASE_EXTRA_ASSET_WAIT_SECONDSMAC_RELEASE_EXTRA_ASSET_WAIT_INTERVALMAC_RELEASE_OP_ENV_REFS— ';'-separatedNAME=op://Vault/Item/fieldentries resolved in the same credential pass and exported for the package command (item names may contain spaces, hence ';'). Already-exported names are preferred; refs only trigger anop readwhen missing. Example:NPM_TOKEN=op://Molty/npm Registry - steipete - Release Automation/registry_token.MAC_RELEASE_OP_ITEM+MAC_RELEASE_OP_FIELDSfor required packaging secrets. The release helper reads the known item once viaopinside one persistent tmux session, then exports the requested fields for the package command.MAC_RELEASE_OP_ACCOUNTdefaults tomy.1password.com;MAC_RELEASE_OP_VAULT,MAC_RELEASE_OP_TMUX_SESSION,MAC_RELEASE_OP_WAIT_SECONDSare optional. Without a vault, service-account token env is unset for that singleopread so the personal desktop account handles it.MAC_RELEASE_CODESIGN_IDENTITY+MAC_RELEASE_CODESIGN_OP_ITEM+MAC_RELEASE_CODESIGN_KEYCHAIN_MANAGED=1enable non-interactive Developer ID signing. The keychain must be replaceable, dedicated to release automation, separate from the default keychain, not shared with interactive use, and contain exactly one signing private key. The helper owns and may permanently normalize that key's partition ACL toapple-tool:,apple:,codesign:. After precheck, the same tmux credential pass readskeychain_pathand normallykeychain_password, takes a per-user release lock, prepends the keychain without hiding existing keychains, verifies a Developer ID Application canary, scopes package signing through a temporarycodesign --keychainshim, then restores transient state and releases the lock. SetMAC_RELEASE_CODESIGN_PASSWORDLESS=1only for the canonical passwordless, never-locking release keychain; this omits the password field, preserves its unlocked state, and disables timeout/lock-on-sleep settings.MAC_RELEASE_CODESIGN_OP_ACCOUNT,MAC_RELEASE_CODESIGN_OP_VAULT,MAC_RELEASE_CODESIGN_OP_USE_SERVICE_ACCOUNT,MAC_RELEASE_CODESIGN_OP_PATH_FIELD, andMAC_RELEASE_CODESIGN_OP_PASSWORD_FIELDoverride the codesign credential item defaults; account, vault, and service-account mode otherwise inherit the primary item settings. Set vault empty and service-account mode0for a personal desktop-account item.MAC_RELEASE_CODESIGN_KEYCHAIN+MAC_RELEASE_CODESIGN_KEYCHAIN_PASSWORDmay be supplied directly instead.MAC_RELEASE_RUN_LOGIN_SHELL=1opts command hooks back intobash -lc; default hooks useenv -u BASH_ENV bash -cso shell startup files cannot override exported release secrets.
1Password rules:
- Prefer already-exported env vars first; no
opcall if allMAC_RELEASE_OP_FIELDSare present. - If fields are missing, read configured package and codesign items in one tmux command for the whole release.
- Provider stderr and parser exceptions are discarded; failed reads stop with fixed provider-read, JSON/schema, missing-field, or parser-failure diagnostics, without values or field labels.
- Direct env-reference handoffs use Bash
%qto preserve captured values safely on Bash 3.2; command substitution still strips terminal newlines fromop readoutput. - Resolve
MAC_RELEASE_SPARKLE_OP_REFwithout exposing the private key in the generated environment file or logs; only the temporary file path crosses the helper boundary. - Use service-account mode only with an explicit vault or
MAC_RELEASE_OP_USE_SERVICE_ACCOUNT=1. - Do not retry
opreads in a fresh shell; rerun only from the same tmux session after explicit user direction. - Never allow a release to reach app packaging with an unprepared Developer ID keychain. No SecurityAgent password windows during release; fail the signing canary first.
- For non-app release scripts, use
codesign-runinstead of copying keychain setup into the repository. Supply the codesign manifest fields through.mac-release.envor explicitMAC_RELEASE_CODESIGN_*environment configuration. It loads only codesign credentials by default; pass--with-package-secretswhen the wrapped release script also needs the configured package/notary fields in the same 1Password pass. It runs the bounded signing canary, scopescodesignthrough the managed-keychain shim, and restores/relocks before returning. - Use
package-runfor notarization/package credentials when no signing operation is required. It never resolves, prepares, or unlocks the Developer ID keychain and strips signing and Sparkle authority from the child. - Disable shell xtrace and verbose mode before loading release secrets. Arm cleanup before keychain/search-list mutations, restore the dedicated keychain's original lock policy and user search list, and relock it after packaging.
Done
- appcast entry has URL, length, Sparkle signature.
- downloaded enclosure's EdDSA signature verifies against
SUPublicEDKey(public key only). - extracted app passes
codesign,spctl, andstapler validate. - GitHub release has app zip, dSYM zip when configured, plus app-specific extra assets.
- release notes match the changelog section.
- after verified release, bump changelog to next patch
Unreleasedin the app repo.
FAQ
What does the release-mac-app skill do?
macOS app release: Sparkle, notarization, GitHub Release, Homebrew, closeout.
How do I install release-mac-app?
Run npx skills add https://github.com/steipete/agent-scripts --skill release-mac-app in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/release-mac-app/ (personal) or .claude/skills/release-mac-app/ (project).
Which AI agents can use release-mac-app?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is release-mac-app safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains release-mac-app?
It is published by steipete in steipete/agent-scripts. It has 80 recorded installs.
More from steipete/agent-scripts
video-transcript-downloader
steipete/agent-scripts
yt-dlp downloads: video, audio, subtitles, transcripts, clips, playlists.
brave-search
steipete/agent-scripts
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
skill-cleaner
steipete/agent-scripts
Codex/OpenClaw skill audit: live budget, usage, duplicates, compact descriptions.
create-cli
steipete/agent-scripts
CLI UX/spec: args, flags, help, output, errors, config, dry-run.
markdown-converter
steipete/agent-scripts
Markdown conversion: PDF, Office, HTML, data, OCR, audio, ZIP, YouTube.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.