From 6235aa8ec6ec2cb60eea7c662524213054fcfb28 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Tue, 25 Nov 2025 15:54:46 +0000 Subject: [PATCH] Use correct file extension everywhere Rather than trying to exhaustively list platforms, we can just specify the singular special case (Windows using ZIP) and use tar.gz everywhere else. --- common.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() {