@@ -9,24 +9,19 @@ export PLAYWRIGHT_SKIP_BROWSER_GC=1
99
1010pushd 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.
1319PLAYWRIGHT_HOST_PLATFORM_OVERRIDE=mac13 npx playwright install chromium chromium-headless-shell firefox
1420PLAYWRIGHT_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-
2722npx playwright --version
2823
2924popd
3025
31- # Archive Bundle with symlinks
26+ # Archive Bundle with symlinks preserved (required for macOS .app bundles)
3227zip --symlinks -r playwright-macos-amd64.zip bundle/
0 commit comments