mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: ubuntu version detection for linux mint (#28085)
This commit is contained in:
parent
c6d154f9c4
commit
d9ccc80d0c
@ -72,6 +72,12 @@ function calculatePlatform(): { hostPlatform: HostPlatform, isOfficiallySupporte
|
|||||||
return { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };
|
return { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };
|
||||||
return { hostPlatform: ('ubuntu22.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };
|
return { hostPlatform: ('ubuntu22.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };
|
||||||
}
|
}
|
||||||
|
// Linux Mint is ubuntu-based but does not have the same versions
|
||||||
|
if (distroInfo?.id === 'linuxmint') {
|
||||||
|
if (parseInt(distroInfo.version, 10) <= 20)
|
||||||
|
return { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };
|
||||||
|
return { hostPlatform: ('ubuntu22.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };
|
||||||
|
}
|
||||||
if (distroInfo?.id === 'debian' || distroInfo?.id === 'raspbian') {
|
if (distroInfo?.id === 'debian' || distroInfo?.id === 'raspbian') {
|
||||||
const isOfficiallySupportedPlatform = distroInfo?.id === 'debian';
|
const isOfficiallySupportedPlatform = distroInfo?.id === 'debian';
|
||||||
if (distroInfo?.version === '11')
|
if (distroInfo?.version === '11')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user