Skip to content

build: complete Electron prebuilt extraction before the legal step - #36

Merged
garycoding merged 1 commit into
developfrom
build-legal-electron-extract
Jul 20, 2026
Merged

garycoding merged 1 commit into
developfrom
build-legal-electron-extract

Conversation

@garycoding

Copy link
Copy Markdown
Collaborator

Fixes the v1.0.0 release build failure.

The release-electron.yml build matrix failed on macOS, Windows, and Linux at npm run legal. Root cause: npm ci on CI's Node leaves Electron 43's prebuilt only partially extracted (the extract-zip/yauzl regression, electron/electron#51619), so node_modules/electron/dist is missing LICENSES.chromium.html and LICENSE. scripts/prepare-legal.mjs correctly guards against shipping empty notices and exits 1. The yauzl ^3.3.1 override handled this for Electron 34 but does not cover Electron 43.

Fix: run node node_modules/electron/install.js after npm ci and before npm run legal in both release-electron.yml and dev-release-electron.yml; it completes the extraction (verified in a clean Electron 43 install: LICENSES.chromium.html goes from absent to ~20 MB, well over the 1 MB guard). test-electron.yml is untouched, since it runs no legal step, which is also why PR CI never surfaced this.

The same gap exists in the shared handbook templates and in conception-space (being handled separately); this should land in the template so the family stays consistent.

🤖 Generated with Claude Code

The v1.0.0 release build failed on all three OS matrix jobs: npm ci on
CI's Node leaves Electron 43's prebuilt only partially extracted
(extract-zip/yauzl regression, electron/electron#51619), so
node_modules/electron/dist lacks the Chromium/Node license notices and
prepare-legal.mjs's guard fails before packaging. The yauzl ^3.3.1
override mitigates this for Electron 34 but not 43. Re-run electron's
installer after npm ci and before npm run legal in the release and
dev-release workflows to finish the extraction. test-electron.yml is
unaffected (it runs no legal step). PR CI never caught this because the
legal step lives only in the packaging workflows.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@garycoding
garycoding merged commit b83dfeb into develop Jul 20, 2026
3 checks passed
@garycoding
garycoding deleted the build-legal-electron-extract branch July 20, 2026 09:05
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