fix: use most recent stable debian release browser binaries in case of debian testing and unstable (#27397)

Fixes: #27398
This commit is contained in:
mash-graz 2023-10-03 21:35:21 +02:00 committed by GitHub
parent b5a40a90c2
commit 2c56af3a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,10 @@ export const hostPlatform = ((): HostPlatform => {
return ('debian11' + archSuffix) as HostPlatform;
if (distroInfo?.id === 'debian' && distroInfo?.version === '12')
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;
}
if (platform === 'win32')