fix: get darwin universal binary (#312)

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2021-10-15 09:43:54 -03:00
committed by GitHub
parent 69b075db94
commit 5df302e5e9
6 changed files with 25 additions and 19 deletions
Generated Vendored
+3
View File
@@ -265,6 +265,9 @@ const getFilename = (distribution) => {
break;
}
}
if (osPlat == 'darwin') {
arch = 'all';
}
const platform = osPlat == 'win32' ? 'Windows' : osPlat == 'darwin' ? 'Darwin' : 'Linux';
const ext = osPlat == 'win32' ? 'zip' : 'tar.gz';
const suffix = pro.suffix(distribution);