mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: use most recent stable debian release browser binaries in case of debian testing and unstable (#27397)
Fixes: #27398
This commit is contained in:
parent
b5a40a90c2
commit
2c56af3a3b
@ -72,6 +72,10 @@ export const hostPlatform = ((): HostPlatform => {
|
|||||||
return ('debian11' + archSuffix) as HostPlatform;
|
return ('debian11' + archSuffix) as HostPlatform;
|
||||||
if (distroInfo?.id === 'debian' && distroInfo?.version === '12')
|
if (distroInfo?.id === 'debian' && distroInfo?.version === '12')
|
||||||
return ('debian12' + archSuffix) as HostPlatform;
|
return ('debian12' + archSuffix) as HostPlatform;
|
||||||
|
// use most recent supported release for 'debian testing' and 'unstable'.
|
||||||
|
// they never include a numeric version entry in /etc/os-release.
|
||||||
|
if (distroInfo?.id === 'debian' && distroInfo?.version === '')
|
||||||
|
return ('debian12' + archSuffix) as HostPlatform;
|
||||||
return ('generic-linux' + archSuffix) as HostPlatform;
|
return ('generic-linux' + archSuffix) as HostPlatform;
|
||||||
}
|
}
|
||||||
if (platform === 'win32')
|
if (platform === 'win32')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user