Skip to main content

One-command packaging (macOS)

It runs: environment preflight → sidecar build → renderer build → main-process build → installer.
Artifacts land in apps/electron/release/ (release-dev/ for the dev channel) as .dmg / .app. The macOS bundle is ad-hoc deep-signed during packaging (apps/electron/scripts/after-pack.cjs) and not notarized — first launch needs one GUI confirmation.

Windows packaging

Windows goes through electron-builder --win nsis, the same chain as CI:
It only runs on Windows; stop bun dev / next dev first so the watcher does not restart Electron during the build.

Step-by-step builds

The three chains can run separately; together they equal bun run build:

Packaging ≠ releasing

These two get conflated, but they are different jobs: Pushing a tag triggers CI (.github/workflows/release.yml): it first creates a Draft Release, then the macOS (macos-14, producing the dmg + SHA256SUMS-macos.txt) and Windows (NSIS setup.exe) jobs package and gh release upload straight into that draft. Before publishing, check the dmg / exe and the SHA256SUMS. release.mjs only syncs versions, tags, and pushes.

Versions

Versions come from a single source, synced across package.json, apps/electron, and the workspace packages. release.mjs syncs versions before tagging. Do not hand-edit a single package.json.

Release checklist

1

Preflight

./scripts/build-release.sh --check.
2

Confirm the gate passes

3

Package and verify the installer

Take the installer from the artifact directory, install it once in a clean environment, and smoke it — especially key reads/writes and sidecar startup. End-to-end smoke scripts live in apps/electron/scripts/.
4

Release

Check with node scripts/release.mjs <version> --dry-run, then drop --dry-run; pushing the tag makes CI produce the Draft Release. Use ./scripts/sync-github.sh afterwards if you need the GitHub mirror.

Back to reference

See what’s planned next.