mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 21:58:52 +03:00
fix: best-effort support for KDE Neon (#20920)
This is a yet-another linux distribution based on Ubuntu. Fixes #20838
This commit is contained in:
parent
5f9e2f3db9
commit
4feb7c9e3b
@ -58,7 +58,8 @@ export const hostPlatform = ((): HostPlatform => {
|
||||
const distroInfo = getLinuxDistributionInfoSync();
|
||||
|
||||
// Pop!_OS is ubuntu-based and has the same versions.
|
||||
if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop') {
|
||||
// KDE Neon is ubuntu-based and has the same versions.
|
||||
if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop' || distroInfo?.id === 'neon') {
|
||||
if (parseInt(distroInfo.version, 10) <= 19)
|
||||
return ('ubuntu18.04' + archSuffix) as HostPlatform;
|
||||
if (parseInt(distroInfo.version, 10) <= 21)
|
||||
|
Loading…
Reference in New Issue
Block a user