Skip to content

🤖 fix: allow local macOS builds and require signing for releases - #4110

Open
coadler wants to merge 3 commits into
mainfrom
fix/mac-dist-unset-signing
Open

🤖 fix: allow local macOS builds and require signing for releases#4110
coadler wants to merge 3 commits into
mainfrom
fix/mac-dist-unset-signing

Conversation

@coadler

@coadler coadler commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

bun run dist:mac failed with bash: CSC_LINK: unbound variable when signing credentials were unset because Make runs Bash with -u. Default the optional variable to an empty string so local builds reach the existing parallel packaging path.

Official nightly/release CI sets MAC_FORCE_CODE_SIGNING=true, which passes Electron Builder's --config.forceCodeSigning=true to both packaging paths. Missing signing identities then fail packaging before release uploads; local and PR builds default to optional signing.

Validation: make static-check passed. The original local build completed for Intel and Apple Silicon DMG/ZIP artifacts. Exercised Electron Builder's installed macOS signing implementation: a missing identity permits optional signing but rejects required signing. Verified the Make recipe forwards the required-signing flag to both architectures and the unified signed path.


Generated with xum • Model: GPT-6 • Thinking: unknown • Cost: unknown

Default optional CSC_LINK to an empty string under strict Bash mode.

Generated with xum • Model: GPT-6 • Thinking: unknown • Cost: unknown

<!-- mux-attribution: model=GPT-6 thinking=unknown costs=unknown -->

coadler commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T20:28:28.002644Z cbd7882 New commits
🔒 Security Review Completed 2026-09-06T20:31:27.120487Z cbd7882 New commits

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 933dfb1480

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Security Review

Here are some automated security review suggestions for this pull request.

Reviewed commit: 933dfb1480

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread Makefile

coadler commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

The intended scope is to restore the existing unsigned local-build branch: unset CSC_LINK should behave like an explicitly empty CSC_LINK, which already reaches that branch. The previous bash -u crash was accidental, and setup-macos-signing.sh explicitly documents proceeding unsigned when no certificate is provided.

The security finding correctly identifies a broader release-policy concern because _desktop-release.yml also invokes this target. Requiring and verifying signatures for official releases should be an explicit release-workflow policy, rather than relying on an unset-variable crash in a shared local-build target. Pausing for maintainer direction before expanding this PR into that policy change; the security thread remains unresolved.

Separately, the Codex Comments CI job currently treats the bot's review-summary/status comment as unresolved feedback. Local make static-check and a full Intel + Apple Silicon bun run dist:mac passed.

Allow unsigned local builds while enforcing Electron Builder forceCodeSigning in the release workflow.

Generated with xum • Model: GPT-6 • Thinking: unknown • Cost: unknown

<!-- mux-attribution: model=GPT-6 thinking=unknown costs=unknown -->
@coadler coadler changed the title 🤖 fix: allow macOS builds without signing credentials 🤖 fix: allow local macOS builds and require signing for releases Sep 6, 2026

coadler commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Continue blocking substantive comments and unresolved review threads while ignoring bot status metadata.

Generated with xum • Model: GPT-6 • Thinking: unknown • Cost: unknown

<!-- mux-attribution: model=GPT-6 thinking=unknown costs=unknown -->
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.

1 participant