Defined zulu as default

This commit is contained in:
Gerrit Grunwald 2021-03-12 11:52:43 +01:00
parent 47432e01be
commit f69f9cdc0b
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -33658,7 +33658,7 @@ function unzipJavaDownload(repoRoot, fileEnding, destinationFolder, extension) {
} }
}); });
} }
function getDownloadInfo(refs, version, arch, javaPackage, distro) { function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const architecture = arch === 'x86' ? 'i686' : 'x64'; const architecture = arch === 'x86' ? 'i686' : 'x64';
let operatingSystem = ''; let operatingSystem = '';

View file

@ -192,7 +192,7 @@ async function getDownloadInfo(
version: string, version: string,
arch: string, arch: string,
javaPackage: string, javaPackage: string,
distro: string distro: string = 'zulu'
): Promise<{version: string; url: string}> { ): Promise<{version: string; url: string}> {
const architecture = arch === 'x86' ? 'i686' : 'x64'; const architecture = arch === 'x86' ? 'i686' : 'x64';
let operatingSystem = ''; let operatingSystem = '';