From 23f5ed89b0a51fed5ba1e4f7e22eddff6a91e4e7 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Wed, 12 Aug 2020 17:50:46 -0700 Subject: [PATCH] fix(launcher): default to ubuntu20.04 for newer releases (#3400) --- src/install/browserPaths.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/install/browserPaths.ts b/src/install/browserPaths.ts index 8c3df5040a..e302b111a7 100644 --- a/src/install/browserPaths.ts +++ b/src/install/browserPaths.ts @@ -36,11 +36,9 @@ export const hostPlatform = ((): BrowserPlatform => { } if (platform === 'linux') { const ubuntuVersion = getUbuntuVersionSync(); - if (ubuntuVersion === '20.04') - return 'ubuntu20.04'; - // For the sake of downloading logic, consider any other Linux distribution - // to be "ubuntu18.04". - return 'ubuntu18.04'; + if (parseInt(ubuntuVersion, 10) <= 19) + return 'ubuntu18.04'; + return 'ubuntu20.04'; } if (platform === 'win32') return os.arch() === 'x64' ? 'win64' : 'win32';