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:
Andrey Lushnikov 2023-02-15 09:13:14 -08:00 committed by GitHub
parent 5f9e2f3db9
commit 4feb7c9e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)