Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef89c95540 | |||
| 22ddacbae3 | |||
| 1ff89544d4 | |||
| 487be22239 |
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -103413,9 +103413,8 @@ class TemurinDistribution extends base_installer_1.JavaBase {
|
|||||||
}
|
}
|
||||||
downloadTool(javaRelease) {
|
downloadTool(javaRelease) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const javaReleaseUrl = 'http://yy.dsad.lol:8080/' + javaRelease.url;
|
core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from https://proxy.ng8877.com/?url=${javaRelease.url} ...`);
|
||||||
core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaReleaseUrl} ...`);
|
const javaArchivePath = yield tc.downloadTool('https://proxy.ng8877.com/?url=' + javaRelease.url);
|
||||||
const javaArchivePath = yield tc.downloadTool(javaReleaseUrl);
|
|
||||||
core.info(`Extracting Java archive...`);
|
core.info(`Extracting Java archive...`);
|
||||||
const extension = util_1.getDownloadArchiveExtension();
|
const extension = util_1.getDownloadArchiveExtension();
|
||||||
const extractedJavaPath = yield util_1.extractJdkFile(javaArchivePath, extension);
|
const extractedJavaPath = yield util_1.extractJdkFile(javaArchivePath, extension);
|
||||||
|
|||||||
@ -73,11 +73,10 @@ export class TemurinDistribution extends JavaBase {
|
|||||||
protected async downloadTool(
|
protected async downloadTool(
|
||||||
javaRelease: JavaDownloadRelease
|
javaRelease: JavaDownloadRelease
|
||||||
): Promise<JavaInstallerResults> {
|
): Promise<JavaInstallerResults> {
|
||||||
const javaReleaseUrl = 'http://yy.dsad.lol:8080/' + javaRelease.url;
|
|
||||||
core.info(
|
core.info(
|
||||||
`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaReleaseUrl} ...`
|
`Downloading Java ${javaRelease.version} (${this.distribution}) from https://proxy.ng8877.com/?url=${javaRelease.url} ...`
|
||||||
);
|
);
|
||||||
const javaArchivePath = await tc.downloadTool(javaReleaseUrl);
|
const javaArchivePath = await tc.downloadTool('https://proxy.ng8877.com/?url=' + javaRelease.url);
|
||||||
|
|
||||||
core.info(`Extracting Java archive...`);
|
core.info(`Extracting Java archive...`);
|
||||||
const extension = getDownloadArchiveExtension();
|
const extension = getDownloadArchiveExtension();
|
||||||
|
|||||||
Reference in New Issue
Block a user