Repository navigation
fix(release): regenerate Windows blockmap via app-builder-lib JS - #10110
Conversation
electron-builder 26 dropped the app-builder-bin Go binary, so the signed-installer staging step failed with 'node_modules/app-builder-bin/ win/x64/app-builder.exe is not recognized'. Blockmap generation now lives in app-builder-lib's pure-JS buildBlockMap; call it through a small script in both the release-cut and signing-rehearsal workflows. Co-authored-by: Orca <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdded a Node ESM script that generates gzip-formatted Windows installer blockmaps and reports output metadata. Updated the release-cut and Windows signing rehearsal workflows to invoke the script for signed installers, with explicit failure handling in the release-cut workflow. ✨ Finishing Touches📝 Generate docstrings
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/release-cut.ymlTraceback (most recent call last): .github/workflows/windows-signing-rehearsal.ymlTraceback (most recent call last): Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…blyai#10110) electron-builder 26 dropped the app-builder-bin Go binary, so the signed-installer staging step failed with 'node_modules/app-builder-bin/ win/x64/app-builder.exe is not recognized'. Blockmap generation now lives in app-builder-lib's pure-JS buildBlockMap; call it through a small script in both the release-cut and signing-rehearsal workflows. Co-authored-by: Orca <[email protected]>
Problem
The
main Cut ReleaseWindows build fails at Stage signed Windows release assets (run 29982009818):Root cause
electron-builder was bumped to
^26.15.3. electron-builder 26 dropped theapp-builder-binGo binary — that package is no longer installed, soapp-builder.exe blockmapdoesn't exist. Blockmap generation moved intoapp-builder-lib's pure-JSbuildBlockMap(app-builder-lib/out/targets/blockmap/blockmap.js), whichcreateBlockmapcalls with thegzipformat for the standalone NSIS installer.blockmap.Fix
config/scripts/generate-windows-blockmap.mjs, which callsbuildBlockMap(input, 'gzip', output)— the same code path electron-builder itself uses for the installer blockmap.app-builder.exe blockmapcall in bothrelease-cut.ymlandwindows-signing-rehearsal.yml(identical usage) with the script, keeping the exit-code guard.The surrounding PowerShell already computes
sha512/size/blockMapSizefrom the files itself, so only the.blockmapfile needs producing.shamefully-hoist=trueguaranteesapp-builder-libresolves from the project root in CI.Testing
buildBlockMapproduces a valid gzip.blockmapand returns{sha512,size}locally against a dummy binary.Made with Orca 🐋