fix(launcher): default to ubuntu20.04 for newer releases (#3400)

This commit is contained in:
Joel Einbinder 2020-08-12 17:50:46 -07:00 committed by GitHub
parent f4e65f6dca
commit 23f5ed89b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,11 +36,9 @@ export const hostPlatform = ((): BrowserPlatform => {
} }
if (platform === 'linux') { if (platform === 'linux') {
const ubuntuVersion = getUbuntuVersionSync(); const ubuntuVersion = getUbuntuVersionSync();
if (ubuntuVersion === '20.04') if (parseInt(ubuntuVersion, 10) <= 19)
return 'ubuntu20.04'; return 'ubuntu18.04';
// For the sake of downloading logic, consider any other Linux distribution return 'ubuntu20.04';
// to be "ubuntu18.04".
return 'ubuntu18.04';
} }
if (platform === 'win32') if (platform === 'win32')
return os.arch() === 'x64' ? 'win64' : 'win32'; return os.arch() === 'x64' ? 'win64' : 'win32';