diff --git a/browsers.json b/browsers.json index 85970d4ef1506c..95774a2205c717 100644 --- a/browsers.json +++ b/browsers.json @@ -14,7 +14,10 @@ { "name": "webkit", "revision": "1443", - "download": true + "download": true, + "revisionOverrides": { + "mac10.14": "1443" + } }, { "name": "ffmpeg", diff --git a/src/utils/registry.ts b/src/utils/registry.ts index 437ca44a867c8c..7c255aa9781927 100644 --- a/src/utils/registry.ts +++ b/src/utils/registry.ts @@ -107,7 +107,7 @@ const DOWNLOAD_URLS = { 'ubuntu18.04': '%s/builds/webkit/%s/webkit-ubuntu-18.04.zip', 'ubuntu20.04': '%s/builds/webkit/%s/webkit-ubuntu-20.04.zip', 'mac10.13': undefined, - 'mac10.14': '%s/builds/webkit/%s/webkit-mac-10.14.zip', + 'mac10.14': '%s/builds/deprecated-webkit-mac-10.14/%s/deprecated-webkit-mac-10.14.zip', 'mac10.15': '%s/builds/webkit/%s/webkit-mac-10.15.zip', 'mac11': '%s/builds/webkit/%s/webkit-mac-10.15.zip', 'mac11-arm64': '%s/builds/webkit/%s/webkit-mac-11.0-arm64.zip', @@ -203,7 +203,11 @@ export class Registry { constructor(packagePath: string) { const browsersJSON = JSON.parse(fs.readFileSync(path.join(packagePath, 'browsers.json'), 'utf8')); - this._descriptors = browsersJSON['browsers']; + this._descriptors = browsersJSON['browsers'].map((obj: any) => ({ + name: obj.name, + revision: (obj.revisionOverrides || {})[hostPlatform] || obj.revision, + download: obj.download, + })); } browserDirectory(browserName: BrowserName): string {