removed libc_type

This commit is contained in:
Gerrit Grunwald 2021-05-07 06:39:52 +02:00
commit ecdb021d00
2 changed files with 0 additions and 10 deletions

5
dist/setup/index.js vendored
View file

@ -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.')) {

View file

@ -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') ||