Skip to content

Add Electron auto-repair and default Case Sensitive to off#29

Merged
oahsiao merged 1 commit into
mainfrom
fix/electron-auto-repair-and-case-default
Jun 24, 2026
Merged

Add Electron auto-repair and default Case Sensitive to off#29
oahsiao merged 1 commit into
mainfrom
fix/electron-auto-repair-and-case-default

Conversation

@oahsiao

@oahsiao oahsiao commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Electron auto-repair: fixes the "Electron failed to install correctly" startup hang where node_modules/electron exists but dist/electron.exe is missing because the bundled extract-zip step extracted incompletely (only a couple of files instead of the full archive).
  • Case Sensitive default: now unchecked by default.

Changes

  • Add scripts/repair-electron.ps1: detects the missing Electron binary, locates the cached release zip (downloading via Electron's install script if absent), re-extracts it with the reliable Expand-Archive, and rewrites path.txt. Includes archive integrity / offline checks and is idempotent.
  • Wire the repair step into M2_SCOUT.cmd and START.CMD before launch.
  • Default the Case Sensitive toggle to off in renderer _applyDefaults and M2_SCOUT.ini.

Testing

  • Simulated the broken state (removed dist + path.txt) and confirmed the repair script restores electron.exe and the app launches.
  • Verified idempotent behavior when Electron is already healthy.

- Add scripts/repair-electron.ps1 to re-extract the Electron binary when a partial/failed install leaves node_modules/electron without dist/electron.exe (extract-zip sometimes extracts incompletely). Uses the reliable Expand-Archive and rewrites path.txt; downloads from cache or via the install script when needed.

- Wire the repair step into M2_SCOUT.cmd and START.CMD before launch.

- Default the Case Sensitive toggle to unchecked (renderer defaults + M2_SCOUT.ini).
@oahsiao oahsiao merged commit 3d20cef into main Jun 24, 2026
3 checks passed
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