diff --git a/common.js b/common.js index 75507da..8f8fa2c 100644 --- a/common.js +++ b/common.js @@ -190,11 +190,8 @@ function useLegacyTarballName(version) { } async function getTarballExt() { - return { - linux: '.tar.xz', - darwin: '.tar.xz', - win32: '.zip', - }[os.platform()]; + if (os.platform() == 'win32') return '.zip'; + return '.tar.xz'; } async function getCachePrefix() {