mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(launcher): default to ubuntu20.04 for newer releases (#3400)
This commit is contained in:
parent
f4e65f6dca
commit
23f5ed89b0
@ -36,11 +36,9 @@ export const hostPlatform = ((): BrowserPlatform => {
|
||||
}
|
||||
if (platform === 'linux') {
|
||||
const ubuntuVersion = getUbuntuVersionSync();
|
||||
if (ubuntuVersion === '20.04')
|
||||
return 'ubuntu20.04';
|
||||
// For the sake of downloading logic, consider any other Linux distribution
|
||||
// to be "ubuntu18.04".
|
||||
return 'ubuntu18.04';
|
||||
if (parseInt(ubuntuVersion, 10) <= 19)
|
||||
return 'ubuntu18.04';
|
||||
return 'ubuntu20.04';
|
||||
}
|
||||
if (platform === 'win32')
|
||||
return os.arch() === 'x64' ? 'win64' : 'win32';
|
||||
|
Loading…
x
Reference in New Issue
Block a user