Skip to content

Release v0.0.5: Developer ID signed and notarized, Modex app icon - #69

Merged
BunsDev merged 7 commits into
mainfrom
release-0.0.5
Oct 3, 2026
Merged

BunsDev merged 7 commits into
mainfrom
release-0.0.5

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

v0.0.5 is the first Developer ID signed, notarized and stapled Modex release, and the first whose artifacts come from the protected Release workflow. It ships the P1 fixes from #51 (Jev settings and routing limits), the contributor fixes #60–#62, the PTY-leak fix (#65), and the Modex app icon.

What this PR changes

  • Version 0.0.5 (apps/desktop/package.json and its lockfile entry only).
  • App icon. docs/branding/modex-icon.png (Add Modex branding images. #39) placed on the macOS icon grid by apps/desktop/scripts/make-icon.swift → apps/desktop/build/icon.icns. The release verify step fails if the bundle's icon differs from that file.
  • DMG notarization. electron-builder notarizes and staples only the .app. The first full run of scripts/release-mac.sh refused the unstapled DMG, as designed. The script now signs the DMG by certificate hash with a secure timestamp, notarizes it, and staples it. Verify checks the DMG's leaf certificate and its Gatekeeper verdict.
  • Release workflow fixes, each found by a signed v0.0.5-rc.N rehearsal tag pushed through the real release-signing environment:
    • rc.1: actions/checkout turns the pushed tag into a lightweight ref, so git tag -v could never pass. The step now fetches the annotated tag object first.
    • rc.2: a fresh checkout has no @modex/core build, so tsc failed. The script now builds core first.
    • CI now imports the .p12 into its own temporary keychain (CSC_KEYCHAIN), because electron-builder deletes its own keychain before the DMG step. CI then resolves and signs by hash exactly as a Mac does.
    • rc.3 passed end to end: tag verified, build signed, notarized, stapled and verified, full e2e suite against the packaged app, artifacts attached to a draft.
  • Packaged PTY check. New e2e closing terminals releases every PTY the app opened counts the running app's /dev/ptmx handles, so node-pty 1.2.0-beta.15's fix is proven inside the shipped, hardened-runtime bundle.
  • Docs. docs/release-signing.md (environment protection, single-identity .p12, DMG notarization, Cutting a release), docs/status.md, docs/branding/README.md, and docs/reviews/2026-10-03-v0.0.5-release-review.md.

Release environment (configured outside the tree)

release-signing has BunsDev as required reviewer, no admin bypass, and deployments only from v* tags. All seven secrets are set. The .p12 holds exactly one identity (EE732DF3…DAF3E7F, valid to 2031) plus the G2 intermediate, and was checked before upload: two subjects, one key, and the key matches the leaf.

After merge

Signed tag v0.0.5 on the squash commit → Release workflow (reviewer approval) → download the draft's assets and verify them locally (shasum -c, Gatekeeper, stapler, signing certificate, packaged e2e) → attach the verification log → publish. Then delete the v0.0.5-rc.* rehearsal tags and drafts.

Verification numbers are in the review document.

🤖 Generated with Claude Code

BunsDev and others added 5 commits October 3, 2026 12:28
…ty itself

electron-builder notarizes and staples only the app, so the first full run
refused an unstapled DMG. The script now signs the DMG by certificate hash
with a secure timestamp, notarizes and staples it, and verify checks its
leaf certificate and Gatekeeper verdict. CI imports the .p12 into its own
temporary keychain (CSC_KEYCHAIN) because electron-builder's keychain is
gone before the DMG step, which also lets CI resolve and sign by hash
exactly as a local run does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t copy

actions/checkout leaves a pushed tag as a lightweight ref to the commit, so
`git tag -v` failed with "cannot verify a non-tag object of type commit" on
the v0.0.5-rc.1 rehearsal. Fetch the tag object first and refuse anything
that is not an annotated tag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A fresh checkout has no packages/core/dist, so the v0.0.5-rc.2 rehearsal
failed in tsc with "Cannot find module '@modex/core'". A local worktree only
passed because the root build had already run there. The bundle ships
core's dist/, so the release build now produces it itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 3, 2026 17:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Tag verification is not bound to the checked-out commit, and the release evidence remains incomplete.

Review effort: Balanced
Findings: 1 High severity · 3 Low severity

Open (4)
What changed in this PR

Prepares v0.0.5 as the first signed, notarized Modex release with branded macOS artifacts.

Changes:

  • Adds the Modex icon and packaged PTY regression test.
  • Signs, notarizes, staples, and verifies DMG artifacts.
  • Updates release workflow, versioning, and documentation.
File Description
.github/​workflows/​release.yml Imports signing credentials and verifies release tags.
apps/​desktop/​build/​icon.icns Adds the packaged macOS icon.
apps/​desktop/​e2e/​release.spec.ts Tests packaged PTY cleanup.
apps/​desktop/​package.json Bumps desktop to v0.0.5.
apps/​desktop/​scripts/​make-icon.swift Generates the macOS icon.
docs/​branding/​README.md Documents icon generation.
docs/​release-signing.md Documents signing and release procedures.
docs/​reviews/​2026-10-03-v0.0.5-release-review.md Records release findings and evidence.
docs/​status.md Marks v0.0.5 release status.
package-lock.json Updates the workspace version.
scripts/​release-mac.sh Signs, notarizes, and verifies release artifacts.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +53 to 55
git fetch --force origin "refs/tags/${GITHUB_REF_NAME}:refs/tags/${GITHUB_REF_NAME}"
[ "$(git cat-file -t "${GITHUB_REF_NAME}")" = tag ] || { echo "::error::${GITHUB_REF_NAME} is not an annotated, signed tag"; exit 1; }
git tag -v "${GITHUB_REF_NAME}"

## Verification

_Filled in from the final runs below._
Comment thread docs/status.md Resolved
Comment thread scripts/release-mac.sh
# electron-builder notarizes and staples only the app. The DMG is a separate download that
# Gatekeeper assesses on its own, so it gets its own signature, notarization and ticket.
dmg="$(ls "$desktop"/release/Modex-*-arm64.dmg)"
say "DMG: sign${notarize:+, notarize, staple}"
@BunsDev
BunsDev merged commit e2c2fbc into main Oct 3, 2026
2 checks passed
@BunsDev
BunsDev deleted the release-0.0.5 branch October 3, 2026 18:03
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.

2 participants