Skip to content

docs: remove osxSign.binaries from JSDoc (intentionally unsupported)#1930

Open
claude[bot] wants to merge 1 commit into
mainfrom
fix-osxsign-binaries-jsdoc
Open

docs: remove osxSign.binaries from JSDoc (intentionally unsupported)#1930
claude[bot] wants to merge 1 commit into
mainfrom
fix-osxsign-binaries-jsdoc

Conversation

@claude

@claude claude Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Requested by Samuel Attard · Slack thread

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable). (docs-only change plus a warning-string tweak; no behavior change)
  • The testsuite passes successfully on my local machine (if applicable). (lint and build:docs run clean; behavior is unchanged)

Summarize your changes:

Before: the published API docs (generated by TypeDoc from the osxSign JSDoc in src/types.ts) advertise a binaries sub-option, but packager intentionally strips binaries at runtime before handing options to @electron/osx-sign (a decision dating back to #285), and the PackagerOsxSignOptions type already Omits it. So the docs promise an option that TypeScript rejects and the runtime silently discards.

After: the docs describe the real behavior — binaries physically present in the packaged app (including anything under app.asar.unpacked) are automatically discovered and signed by @electron/osx-sign, and native modules packed inside app.asar should be unpacked (via the asar unpack option or Electron Forge's AutoUnpackNativesPlugin) so they can be signed.

How: removed the binaries bullet from the osxSign JSDoc in src/types.ts and replaced it with a note explaining the intentional omission (linking #285) and the recommended approach. Also extended the existing runtime warning in src/mac.ts (the signOpts.binaries strip) with the same one-sentence guidance so users who hit it at runtime know what to do instead.

Addresses the docs contradiction reported in #1723 — leaving it to maintainers whether this fully closes it. Refs #1723.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BVhUtw4HMUepasMThQXycP


Generated by Claude Code

The osxSign JSDoc still advertised a `binaries` sub-option, even though
packager intentionally strips it before calling @electron/osx-sign (see
issue #285) and the PackagerOsxSignOptions type already omits it. TypeDoc
publishes this JSDoc to the API docs site, producing the contradiction
reported in #1723.

Replace the bullet with a note explaining the real behavior: binaries
physically present in the bundle (including app.asar.unpacked) are signed
automatically, and native modules packed inside app.asar should be
unpacked so they can be signed. Also extend the runtime warning in
src/mac.ts with the same guidance.

Refs #1723

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVhUtw4HMUepasMThQXycP
@MarshallOfSound MarshallOfSound marked this pull request as ready for review July 3, 2026 19:30
@MarshallOfSound MarshallOfSound requested a review from a team as a code owner July 3, 2026 19:30
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