OpenLogic uses zip for macos pkgs

This commit is contained in:
Gerrit Grunwald 2021-04-26 08:45:13 +02:00
commit 628791df9d
2 changed files with 5 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -33701,7 +33701,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
else {
if (process.platform === 'darwin') {
operatingSystem = 'macos';
archiveType = distribution === 'liberica' ? 'zip' : 'tar.gz';
archiveType = ((distribution === 'liberica') || (distribution === 'open_logic')) ? 'zip' : 'tar.gz';
}
else {
operatingSystem = 'linux';

View file

@ -226,7 +226,10 @@ async function getDownloadInfo(
} else {
if (process.platform === 'darwin') {
operatingSystem = 'macos';
archiveType = distribution === 'liberica' ? 'zip' : 'tar.gz';
archiveType =
distribution === 'liberica' || distribution === 'open_logic'
? 'zip'
: 'tar.gz';
} else {
operatingSystem = 'linux';
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';