Skip to content

Commit 1d90d7a

Browse files
authored
feat: fix browser installation on mac 11.0-arm64 (#4652)
1 parent e0a02c3 commit 1d90d7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/browserPaths.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
8787
['mac10.14', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
8888
['mac10.15', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
8989
['mac11.0', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
90+
['mac11.0-arm64', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
9091
['win32', ['chrome-win', 'chrome.exe']],
9192
['win64', ['chrome-win', 'chrome.exe']],
9293
]).get(hostPlatform);
@@ -100,6 +101,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
100101
['mac10.14', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
101102
['mac10.15', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
102103
['mac11.0', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
104+
['mac11.0-arm64', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
103105
['win32', ['firefox', 'firefox.exe']],
104106
['win64', ['firefox', 'firefox.exe']],
105107
]).get(hostPlatform);
@@ -113,6 +115,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
113115
['mac10.14', ['pw_run.sh']],
114116
['mac10.15', ['pw_run.sh']],
115117
['mac11.0', ['pw_run.sh']],
118+
['mac11.0-arm64', ['pw_run.sh']],
116119
['win32', ['Playwright.exe']],
117120
['win64', ['Playwright.exe']],
118121
]).get(hostPlatform);

0 commit comments

Comments
 (0)