mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
fix(utils): fix check-availability script (#3158)
This commit is contained in:
parent
d9890f1102
commit
c8c92c509d
@ -20,7 +20,13 @@ const browserFetcher = require('../lib/install/browserFetcher.js');
|
||||
const https = require('https');
|
||||
const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64'];
|
||||
|
||||
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => platform === 'mac' ? 'mac10.15' : platform);
|
||||
const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => {
|
||||
if (platform === 'mac')
|
||||
return 'mac10.15';
|
||||
if (platform === 'linux')
|
||||
return 'ubuntu18.04';
|
||||
return platform;
|
||||
});
|
||||
|
||||
const colors = {
|
||||
reset: '\x1b[0m',
|
||||
|
Loading…
Reference in New Issue
Block a user