Skip to content

build: fix mksnapshot path in mksnapshot_args for flattened macOS zips - #53388

Merged
dsanders11 merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788326125440
Sep 2, 2026
Merged

dsanders11 merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788326125440

Conversation

@trop

@trop trop Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Backport of #53363

See that PR for details.

Notes: none

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: Claude <[email protected]>
@dsanders11
dsanders11 enabled auto-merge (squash) September 2, 2026 05:36
@dsanders11
dsanders11 merged commit 86813f1 into 45-x-y Sep 2, 2026
95 checks passed
@dsanders11
dsanders11 deleted the trop/45-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788326125440 branch September 2, 2026 06:25
@release-clerk

release-clerk Bot commented Sep 2, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant