---
name: Desktop app release
description: >-
  When releasing a macOS (or cross-platform) desktop app: icon, code signing and notarization, publishing installers to GitHub Releases, auto-update, and speeding up signing.
title: Desktop app release
canonical_url: https://skilld.dev/gh/okayok-ai/okayok-skills/desktop-app-release
last_updated: 2026-10-26T02:04:12.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install okayok-ai/okayok-skills/desktop-app-release`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/desktop-app-release`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/okayok-ai/okayok-skills/desktop-app-release) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/desktop-app-release`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/desktop-app-release --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/desktop-app-release --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Desktop app release

Ship a signed, notarized desktop app that users can download and that auto-updates.

## Icon & branding
- Generate the app icon with the family-mark skill, at all required sizes; apply to the app bundle, the site favicon/logo, OG, and screenshots.

## Build & sign (macOS)
1. Bump the version in the app manifest; add a release-notes line.
2. Package the app for the target arch (e.g. Apple silicon).
3. **Code sign** with your Developer ID. Sign **only the Mach-O code, each file once**, plus the app's nested components — don't deep-sign every data file (language packs, images, assets). Signing hundreds of non-code files (each fetching a timestamp) is the usual cause of slow signing; signing only code can cut it from minutes to seconds. The app's outer signature still covers the data files.
4. **Notarize** the app with Apple, staple the ticket, and verify with Gatekeeper (`spctl`) + strict deep codesign.
5. Build the dmg/zip from the stapled app; **sign and notarize the dmg too** so the first download opens cleanly. (Notarizing only the app and not the dmg saves time but weakens the first-open experience — keep dmg notarization unless the user opts out.)

## Slimming the installer (optional, no caching)
- Ship only the languages you support (prune other locale packs from the app and the framework).
- Exclude source maps, TS sources, tests, and docs from the bundled app files.
- These shrink the download; they don't weaken signing or notarization.

## Publish & auto-update
- Publish installers to a **public GitHub Releases repo** with versioned tags (keep app source private if needed). Don't rely on ad-hoc file links.
- Include the update feed/manifest (e.g. RELEASES.json / latest-mac.yml) pointing at the new version so existing users auto-update.
- The site's download page should read the latest published release dynamically, so it needs no change per release.

## Migration note
- When renaming an app that existing users already run, keep the internal bundle id / data dir / update channel on the old identifier so current users still receive updates; change only the user-facing name.

## Verify
- Release is public with dmg + zip + update manifest.
- Gatekeeper accepts the dmg; app is notarized and passes strict deep codesign.
- Auto-update feed and the site download link both point to the new version.
- First real release after a signing-config change is the true test — watch notarization accept both app and dmg; if it rejects, stop before publishing a broken build.
