Skip to content

fix(release): regenerate Windows blockmap via app-builder-lib JS - #10110

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-wind-build
Jul 23, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-wind-build

Conversation

@nwparker

@nwparker nwparker commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The main Cut Release Windows build fails at Stage signed Windows release assets (run 29982009818):

The term 'node_modules/app-builder-bin/win/x64/app-builder.exe' is not recognized
as a name of a cmdlet, function, script file, or executable program.

Root cause

electron-builder was bumped to ^26.15.3. electron-builder 26 dropped the app-builder-bin Go binary — that package is no longer installed, so app-builder.exe blockmap doesn't exist. Blockmap generation moved into app-builder-lib's pure-JS buildBlockMap (app-builder-lib/out/targets/blockmap/blockmap.js), which createBlockmap calls with the gzip format for the standalone NSIS installer .blockmap.

Fix

  • Add config/scripts/generate-windows-blockmap.mjs, which calls buildBlockMap(input, 'gzip', output) — the same code path electron-builder itself uses for the installer blockmap.
  • Replace the dead app-builder.exe blockmap call in both release-cut.yml and windows-signing-rehearsal.yml (identical usage) with the script, keeping the exit-code guard.

The surrounding PowerShell already computes sha512/size/blockMapSize from the files itself, so only the .blockmap file needs producing. shamefully-hoist=true guarantees app-builder-lib resolves from the project root in CI.

Testing

  • Verified buildBlockMap produces a valid gzip .blockmap and returns {sha512,size} locally against a dummy binary.
  • Both workflow YAMLs parse cleanly.

Made with Orca 🐋

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]>
@nwparker
nwparker merged commit 5610142 into main Jul 23, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 432008b2-a9bd-400a-bc47-36500f4834ac

📥 Commits

Reviewing files that changed from the base of the PR and between 72a2d7b and e4a8aa6.

📒 Files selected for processing (3)
  • .github/workflows/release-cut.yml
  • .github/workflows/windows-signing-rehearsal.yml
  • config/scripts/generate-windows-blockmap.mjs

📝 Walkthrough

Walkthrough

Added 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
  • Create stacked PR
  • Commit on current branch

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.yml

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'

.github/workflows/windows-signing-rehearsal.yml

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…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]>
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