From 1d90d7a92532d51047745a544a78df5b87f08270 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 9 Dec 2020 09:54:37 -0800 Subject: [PATCH] feat: fix browser installation on mac 11.0-arm64 (#4652) --- src/utils/browserPaths.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/browserPaths.ts b/src/utils/browserPaths.ts index 2a41b5431c..f9e2ed0318 100644 --- a/src/utils/browserPaths.ts +++ b/src/utils/browserPaths.ts @@ -87,6 +87,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor): ['mac10.14', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']], ['mac10.15', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']], ['mac11.0', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']], + ['mac11.0-arm64', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']], ['win32', ['chrome-win', 'chrome.exe']], ['win64', ['chrome-win', 'chrome.exe']], ]).get(hostPlatform); @@ -100,6 +101,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor): ['mac10.14', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']], ['mac10.15', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']], ['mac11.0', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']], + ['mac11.0-arm64', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']], ['win32', ['firefox', 'firefox.exe']], ['win64', ['firefox', 'firefox.exe']], ]).get(hostPlatform); @@ -113,6 +115,7 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor): ['mac10.14', ['pw_run.sh']], ['mac10.15', ['pw_run.sh']], ['mac11.0', ['pw_run.sh']], + ['mac11.0-arm64', ['pw_run.sh']], ['win32', ['Playwright.exe']], ['win64', ['Playwright.exe']], ]).get(hostPlatform);