mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 04:54:14 +00:00
removed libc_type
This commit is contained in:
parent
51e12f8439
commit
ecdb021d00
2 changed files with 0 additions and 10 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -33694,23 +33694,19 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
|||
distribution = 'zulu';
|
||||
}
|
||||
let archiveType;
|
||||
let libcType;
|
||||
if (IS_WINDOWS) {
|
||||
operatingSystem = 'windows';
|
||||
archiveType = 'zip';
|
||||
libcType = 'c_std_lib';
|
||||
}
|
||||
else {
|
||||
if (process.platform === 'darwin') {
|
||||
operatingSystem = 'macos';
|
||||
let zipArchive = distribution === 'liberica' || distribution === 'openlogic';
|
||||
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
||||
libcType = 'libc';
|
||||
}
|
||||
else {
|
||||
operatingSystem = 'linux';
|
||||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||
libcType = 'glibc';
|
||||
}
|
||||
}
|
||||
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;
|
||||
|
@ -33732,7 +33728,6 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
|||
url += '&architecture=' + architecture;
|
||||
url += '&operating_system=' + operatingSystem;
|
||||
url += '&archive_type=' + archiveType;
|
||||
url += '&libc_type=' + libcType;
|
||||
if (version.includes('x') ||
|
||||
version.includes('ea') ||
|
||||
version.startsWith('1.')) {
|
||||
|
|
|
@ -220,22 +220,18 @@ async function getDownloadInfo(
|
|||
distribution = 'zulu';
|
||||
}
|
||||
let archiveType;
|
||||
let libcType;
|
||||
if (IS_WINDOWS) {
|
||||
operatingSystem = 'windows';
|
||||
archiveType = 'zip';
|
||||
libcType = 'c_std_lib';
|
||||
} else {
|
||||
if (process.platform === 'darwin') {
|
||||
operatingSystem = 'macos';
|
||||
let zipArchive =
|
||||
distribution === 'liberica' || distribution === 'openlogic';
|
||||
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
||||
libcType = 'libc';
|
||||
} else {
|
||||
operatingSystem = 'linux';
|
||||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||
libcType = 'glibc';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -257,7 +253,6 @@ async function getDownloadInfo(
|
|||
url += '&architecture=' + architecture;
|
||||
url += '&operating_system=' + operatingSystem;
|
||||
url += '&archive_type=' + archiveType;
|
||||
url += '&libc_type=' + libcType;
|
||||
if (
|
||||
version.includes('x') ||
|
||||
version.includes('ea') ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue