Skip to content

Commit

Permalink
devops: start downloading webkit fork on Mac 10.14
Browse files Browse the repository at this point in the history
References microsoft#5833
  • Loading branch information
aslushnikov committed Mar 16, 2021
1 parent ab4629a commit 322edf5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
{
"name": "webkit",
"revision": "1443",
"download": true
"download": true,
"revisionOverrides": {
"mac10.14": "1443"
}
},
{
"name": "ffmpeg",
Expand Down
8 changes: 6 additions & 2 deletions src/utils/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 322edf5

Please sign in to comment.