Repository navigation
Release v0.0.5: Developer ID signed and notarized, Modex app icon - #69
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
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
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._ |
| # 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}" |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


v0.0.5 is the first Developer ID signed, notarized and stapled Modex release, and the first whose artifacts come from the protected
Releaseworkflow. 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
apps/desktop/package.jsonand its lockfile entry only).docs/branding/modex-icon.png(Add Modex branding images. #39) placed on the macOS icon grid byapps/desktop/scripts/make-icon.swift→apps/desktop/build/icon.icns. The release verify step fails if the bundle's icon differs from that file..app. The first full run ofscripts/release-mac.shrefused 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.v0.0.5-rc.Nrehearsal tag pushed through the realrelease-signingenvironment:actions/checkoutturns the pushed tag into a lightweight ref, sogit tag -vcould never pass. The step now fetches the annotated tag object first.@modex/corebuild, sotscfailed. The script now builds core first..p12into 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./dev/ptmxhandles, so node-pty 1.2.0-beta.15's fix is proven inside the shipped, hardened-runtime bundle.docs/release-signing.md(environment protection, single-identity.p12, DMG notarization, Cutting a release),docs/status.md,docs/branding/README.md, anddocs/reviews/2026-10-03-v0.0.5-release-review.md.Release environment (configured outside the tree)
release-signinghas BunsDev as required reviewer, no admin bypass, and deployments only fromv*tags. All seven secrets are set. The.p12holds 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.5on the squash commit →Releaseworkflow (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 thev0.0.5-rc.*rehearsal tags and drafts.Verification numbers are in the review document.
🤖 Generated with Claude Code