Skip to content

Fix macOS damaged-app error with ad-hoc bundle signing - #18

Merged
nicksan222 merged 2 commits into
mainfrom
fix/macos-bundle-signature
Oct 8, 2026
Merged

nicksan222 merged 2 commits into
mainfrom
fix/macos-bundle-signature

Conversation

@nicksan222

Copy link
Copy Markdown
Owner

Cause

The published v0.1.0 macOS executable runs directly, but both distributed app bundles fail codesign --verify --deep --strict: code has no resources but signature indicates they must be present. Packaging preserved the linker signature on the executable without signing the completed bundle. Updater signatures do not check this.

Fix

  • Default to ad-hoc bundle signing (signingIdentity: "-"); no Apple account or paid certificate required. Existing optional Developer ID configuration still overrides it.
  • Verify the app inside both the DMG and updater archive before copying release assets to dist/.
  • Include the verifier in shell linting and explain Open Anyway in English and Italian installation instructions.

Ad-hoc signing fixes the invalid signature, not Gatekeeper trust: users still need to approve the unnotarized app. No application code or version changes.

Validation

  • Downloaded the actual published macOS DMG and updater archive.
  • Confirmed the verifier rejects each original bundle independently.
  • Re-signed the downloaded app using the same codesign flags as cargo-packager 0.11.8, rebuilt a DMG and archive, and verified both pass.
  • All project shell scripts pass ShellCheck 0.11.0 in Docker; packaging scripts pass bash -n; git diff --check passes.
  • Full just check could not run locally: the devcontainer base image fails to resolve, and host ShellCheck is absent. PR CI will run the normal checks.

A new release after merging is needed to replace the broken landing-page download.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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-10-08T09:25:03.518604Z d5c2114 PR opened
ℹ️ 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 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 Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5c2114c64

ℹ️ 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".

Comment thread apps/desktop/packaging/packager.json
@nicksan222
nicksan222 merged commit 4880ab7 into main Oct 8, 2026
4 checks passed
@nicksan222
nicksan222 deleted the fix/macos-bundle-signature branch October 8, 2026 09:36
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