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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user