Skip to content

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

Merged
MarshallOfSound merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788278139537
Sep 1, 2026
Merged

MarshallOfSound merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788278139537

Conversation

@trop

@trop trop Bot commented Sep 1, 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]>
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 1, 2026 17:32
@MarshallOfSound
MarshallOfSound merged commit 1aae96d into 42-x-y Sep 1, 2026
91 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/42-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788278139537 branch September 1, 2026 17:45
@release-clerk

release-clerk Bot commented Sep 1, 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant