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.
This commit is contained in:
Matthew Lugg
2025-11-28 13:04:27 +00:00
parent 244f44ebd6
commit 6235aa8ec6
+2 -5
View File
@@ -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() {