mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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();
|
const distroInfo = getLinuxDistributionInfoSync();
|
||||||
|
|
||||||
// Pop!_OS is ubuntu-based and has the same versions.
|
// 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)
|
if (parseInt(distroInfo.version, 10) <= 19)
|
||||||
return ('ubuntu18.04' + archSuffix) as HostPlatform;
|
return ('ubuntu18.04' + archSuffix) as HostPlatform;
|
||||||
if (parseInt(distroInfo.version, 10) <= 21)
|
if (parseInt(distroInfo.version, 10) <= 21)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user