Skip to content

Packaging: ship electron/ subdirectories, so packaged builds boot again - #1751

Merged
currentbits merged 2 commits into
mainfrom
fix/package-electron-subdirs
Oct 30, 2026
Merged

currentbits merged 2 commits into
mainfrom
fix/package-electron-subdirs

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Every packaged build since #1728 hangs at boot. package-app.sh and package-cross.sh copied electron/*.js only, so electron/channels/ (Telegram, Slack, Discord) never reached the bundle. main.js requires ./channels/index.js at startup, the require throws, and Electron's uncaught-error dialog blocks the main thread (sample showed NSAlert runModal). Tests and CI run from source, so only verify-package.sh's boot probe caught it, while cutting a Nightly from e2f2fb39. Nothing was published.

Fix: copy every .js under electron/ recursively, tests still excluded (rsync --exclude='/test/' --include='*/' --include='*.js' --exclude='*'). The result is the same 311 top-level files plus the 4 in channels/.

Verified: rebuilt the Nightly app with this script. channels/ is in the bundle, and verify-package.sh passes (boot, /health ok:true, memory seed / embed check, verify: OK).

🤖 Generated with Claude Code

…ls/)

package-app.sh and package-cross.sh copied electron/*.js only, so the
electron/channels/ folder from #1728/#1740 never reached the bundle and
every packaged build hung at boot on Electron's uncaught-error dialog
(require ./channels/index.js). Found by verify-package's boot probe while
cutting a nightly from e2f2fb3. Copy recursively, tests still excluded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T08:52:31.026409Z 0a99fcd 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.

The old assertion pinned the top-level electron/*.js glob that dropped
electron/channels/. Assert the recursive rsync (tests excluded) in
package-app.sh and package-cross.sh instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@currentbits
currentbits merged commit 742125b into main Oct 30, 2026
6 checks passed
@currentbits
currentbits deleted the fix/package-electron-subdirs branch October 30, 2026 10:14
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