Skip to content

Fix Electron desktop boot (missing node_modules) - #31

Merged
ReBoticsAI merged 3 commits into
mainfrom
fix/electron-desktop-boot
Jul 16, 2026
Merged

Fix Electron desktop boot (missing node_modules)#31
ReBoticsAI merged 3 commits into
mainfrom
fix/electron-desktop-boot

Conversation

@ReBoticsAI

Copy link
Copy Markdown
Owner

Summary

  • Root cause: electron-builder respects .gitignore, so packaged desktops shipped without node_modules. Bridge crashed on cors, host exited, Electron quit with no UI.
  • Stage deps as _node_modules, rename back in afterPack, and fail the build if cors is missing.
  • Show a splash during boot, error dialogs on failure, and write %APPDATA%\GodMode\logs\desktop.log.
  • Install under GodMode instead of @godmodedesktop.

Test plan

  • npm run build -w @godmode/desktop
  • npm run test:release
  • After merge, run Unified release (or wait for nightly) and install the new Windows exe
  • Confirm window opens; if not, check desktop.log

Do not rely on the current nightly installer — it is broken.

electron-builder was omitting node_modules via .gitignore, so the Windows app quit silently after install. Also surface splash/errors and write desktop.log.
@cursor

cursor Bot commented Jul 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Skip shipping electron tooling in the desktop runtime, use a fresh stage dir, compile preload as CJS, and fall back to a junction when Windows locks the _node_modules rename.
@ReBoticsAI
ReBoticsAI merged commit 2f29a07 into main Jul 16, 2026
1 check passed
@ReBoticsAI
ReBoticsAI deleted the fix/electron-desktop-boot branch July 16, 2026 15: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