Skip to content

Commit 5d69549

Browse files
cherrypick(release-1.7): add support for macOS Big Sur 11.1 (#4726)
PR: #4724 SHA: 69476a8 References #4722 Co-authored-by: Max Schmitt <[email protected]>
1 parent 86cc43c commit 5d69549

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/install/browserFetcher.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
6868
['mac10.14', '%s/chromium-browser-snapshots/Mac/%d/chrome-mac.zip'],
6969
['mac10.15', '%s/chromium-browser-snapshots/Mac/%d/chrome-mac.zip'],
7070
['mac11.0', '%s/chromium-browser-snapshots/Mac/%d/chrome-mac.zip'],
71+
['mac11.1', '%s/chromium-browser-snapshots/Mac/%d/chrome-mac.zip'],
7172
['win32', '%s/chromium-browser-snapshots/Win/%d/chrome-win.zip'],
7273
['win64', '%s/chromium-browser-snapshots/Win_x64/%d/chrome-win.zip'],
7374
]).get(platform) :
@@ -79,6 +80,8 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
7980
['mac10.15', '%s/builds/chromium/%s/chromium-mac.zip'],
8081
['mac11.0', '%s/builds/chromium/%s/chromium-mac.zip'],
8182
['mac11.0-arm64', '%s/builds/chromium/%s/chromium-mac-arm64.zip'],
83+
['mac11.1', '%s/builds/chromium/%s/chromium-mac.zip'],
84+
['mac11.1-arm64', '%s/builds/chromium/%s/chromium-mac-arm64.zip'],
8285
['win32', '%s/builds/chromium/%s/chromium-win32.zip'],
8386
['win64', '%s/builds/chromium/%s/chromium-win64.zip'],
8487
]).get(platform);
@@ -94,6 +97,7 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
9497
['mac10.14', '%s/builds/firefox/%s/firefox-mac.zip'],
9598
['mac10.15', '%s/builds/firefox/%s/firefox-mac.zip'],
9699
['mac11.0', '%s/builds/firefox/%s/firefox-mac.zip'],
100+
['mac11.1', '%s/builds/firefox/%s/firefox-mac.zip'],
97101
['win32', '%s/builds/firefox/%s/firefox-win32.zip'],
98102
['win64', '%s/builds/firefox/%s/firefox-win64.zip'],
99103
]).get(platform) :
@@ -105,6 +109,8 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
105109
['mac10.15', '%s/builds/firefox/%s/firefox-mac-10.14.zip'],
106110
['mac11.0', '%s/builds/firefox/%s/firefox-mac-10.14.zip'],
107111
['mac11.0-arm64', '%s/builds/firefox/%s/firefox-mac-10.14.zip'],
112+
['mac11.1', '%s/builds/firefox/%s/firefox-mac-10.14.zip'],
113+
['mac11.1-arm64', '%s/builds/firefox/%s/firefox-mac-10.14.zip'],
108114
['win32', '%s/builds/firefox/%s/firefox-win32.zip'],
109115
['win64', '%s/builds/firefox/%s/firefox-win64.zip'],
110116
]).get(platform);
@@ -120,6 +126,7 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
120126
['mac10.14', '%s/builds/webkit/%s/minibrowser-mac-10.14.zip'],
121127
['mac10.15', '%s/builds/webkit/%s/minibrowser-mac-10.15.zip'],
122128
['mac11.0', '%s/builds/webkit/%s/minibrowser-mac-10.15.zip'],
129+
['mac11.1', '%s/builds/webkit/%s/minibrowser-mac-10.15.zip'],
123130
['win32', '%s/builds/webkit/%s/minibrowser-win64.zip'],
124131
['win64', '%s/builds/webkit/%s/minibrowser-win64.zip'],
125132
]).get(platform) :
@@ -131,6 +138,8 @@ function getDownloadUrl(browserName: BrowserName, revision: number, platform: Br
131138
['mac10.15', '%s/builds/webkit/%s/webkit-mac-10.15.zip'],
132139
['mac11.0', '%s/builds/webkit/%s/webkit-mac-10.15.zip'],
133140
['mac11.0-arm64', '%s/builds/webkit/%s/webkit-mac-11.0-arm64.zip'],
141+
['mac11.1', '%s/builds/webkit/%s/webkit-mac-10.15.zip'],
142+
['mac11.1-arm64', '%s/builds/webkit/%s/webkit-mac-11.0-arm64.zip'],
134143
['win32', '%s/builds/webkit/%s/webkit-win64.zip'],
135144
['win64', '%s/builds/webkit/%s/webkit-win64.zip'],
136145
]).get(platform);

src/utils/browserPaths.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { getUbuntuVersionSync } from './ubuntuVersion';
2222
import { getFromENV } from './utils';
2323

2424
export type BrowserName = 'chromium'|'webkit'|'firefox'|'clank';
25-
export type BrowserPlatform = 'win32'|'win64'|'mac10.13'|'mac10.14'|'mac10.15'|'mac11.0'|'mac11.0-arm64'|'ubuntu18.04'|'ubuntu20.04';
25+
export type BrowserPlatform = 'win32'|'win64'|'mac10.13'|'mac10.14'|'mac10.15'|'mac11.0'|'mac11.0-arm64'|'mac11.1'|'mac11.1-arm64'|'ubuntu18.04'|'ubuntu20.04';
2626
export type BrowserDescriptor = {
2727
name: BrowserName,
2828
revision: string,
@@ -88,6 +88,8 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
8888
['mac10.15', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
8989
['mac11.0', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
9090
['mac11.0-arm64', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
91+
['mac11.1', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
92+
['mac11.1-arm64', ['chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium']],
9193
['win32', ['chrome-win', 'chrome.exe']],
9294
['win64', ['chrome-win', 'chrome.exe']],
9395
]).get(hostPlatform);
@@ -102,6 +104,8 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
102104
['mac10.15', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
103105
['mac11.0', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
104106
['mac11.0-arm64', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
107+
['mac11.1', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
108+
['mac11.1-arm64', ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox']],
105109
['win32', ['firefox', 'firefox.exe']],
106110
['win64', ['firefox', 'firefox.exe']],
107111
]).get(hostPlatform);
@@ -116,6 +120,8 @@ export function executablePath(browserPath: string, browser: BrowserDescriptor):
116120
['mac10.15', ['pw_run.sh']],
117121
['mac11.0', ['pw_run.sh']],
118122
['mac11.0-arm64', ['pw_run.sh']],
123+
['mac11.1', ['pw_run.sh']],
124+
['mac11.1-arm64', ['pw_run.sh']],
119125
['win32', ['Playwright.exe']],
120126
['win64', ['Playwright.exe']],
121127
]).get(hostPlatform);

0 commit comments

Comments
 (0)