Skip to content

Commit 9617276

Browse files
fixing checks
1 parent 27522a6 commit 9617276

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

scripts/bundle.macos.sh

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,19 @@ export PLAYWRIGHT_SKIP_BROWSER_GC=1
99

1010
pushd bundle/
1111

12-
# Install chromium and firefox with mac13 platform override
12+
# Install ARM64 browsers natively (build machine is macos-15 ARM).
13+
# This guarantees chrome-mac-arm64/, firefox-arm64/, etc. are created correctly.
14+
npx playwright install chromium chromium-headless-shell firefox webkit
15+
npx playwright install-deps chromium firefox webkit
16+
17+
# Install x86 browsers for mac13 (macOS 12/13) compatibility.
18+
# PLAYWRIGHT_SKIP_BROWSER_GC=1 ensures the ARM64 browsers above aren't cleaned up.
1319
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac13 npx playwright install chromium chromium-headless-shell firefox
1420
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac13 npx playwright install-deps chromium firefox
1521

16-
# Install chromium for mac14 (ARM - for macOS 14+).
17-
# Both chrome-mac (x86) and chrome-mac-arm64 (ARM) directories will coexist under chromium-1208/.
18-
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac14 npx playwright install chromium chromium-headless-shell
19-
20-
# WebKit is not supported on mac13 or earlier in Playwright 1.58.1 (void 0 in registry).
21-
# Install webkit separately for mac14 (forward-compatible with mac15).
22-
# Both mac14 and mac15 share the same revision (2248) and directory (webkit-2248),
23-
# so only one install is needed. Using mac14 for broadest compatibility.
24-
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac14 npx playwright install webkit
25-
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac14 npx playwright install-deps webkit
26-
2722
npx playwright --version
2823

2924
popd
3025

31-
# Archive Bundle with symlinks
26+
# Archive Bundle with symlinks preserved (required for macOS .app bundles)
3227
zip --symlinks -r playwright-macos-amd64.zip bundle/

0 commit comments

Comments
 (0)