mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 13:04:13 +00:00
OpenLogic uses zip for macos pkgs
This commit is contained in:
parent
48c0cd5458
commit
628791df9d
2 changed files with 5 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -33701,7 +33701,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
||||||
else {
|
else {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
operatingSystem = 'macos';
|
operatingSystem = 'macos';
|
||||||
archiveType = distribution === 'liberica' ? 'zip' : 'tar.gz';
|
archiveType = ((distribution === 'liberica') || (distribution === 'open_logic')) ? 'zip' : 'tar.gz';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
operatingSystem = 'linux';
|
operatingSystem = 'linux';
|
||||||
|
|
|
@ -226,7 +226,10 @@ async function getDownloadInfo(
|
||||||
} else {
|
} else {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
operatingSystem = 'macos';
|
operatingSystem = 'macos';
|
||||||
archiveType = distribution === 'liberica' ? 'zip' : 'tar.gz';
|
archiveType =
|
||||||
|
distribution === 'liberica' || distribution === 'open_logic'
|
||||||
|
? 'zip'
|
||||||
|
: 'tar.gz';
|
||||||
} else {
|
} else {
|
||||||
operatingSystem = 'linux';
|
operatingSystem = 'linux';
|
||||||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue