修改代理网址
This commit is contained in:
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -103413,8 +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* () {
|
||||||
core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from http://proxy.pascall.top:8080/${javaRelease.url} ...`);
|
core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from https://proxy.ng8877.com/?url=${javaRelease.url} ...`);
|
||||||
const javaArchivePath = yield tc.downloadTool('http://proxy.pascall.top:8080/' + javaRelease.url);
|
const javaArchivePath = yield tc.downloadTool('https://proxy.ng8877.com/?url=' + javaRelease.url);
|
||||||
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);
|
||||||
|
|||||||
@ -74,9 +74,9 @@ export class TemurinDistribution extends JavaBase {
|
|||||||
javaRelease: JavaDownloadRelease
|
javaRelease: JavaDownloadRelease
|
||||||
): Promise<JavaInstallerResults> {
|
): Promise<JavaInstallerResults> {
|
||||||
core.info(
|
core.info(
|
||||||
`Downloading Java ${javaRelease.version} (${this.distribution}) from http://proxy.pascall.top:8080/${javaRelease.url} ...`
|
`Downloading Java ${javaRelease.version} (${this.distribution}) from https://proxy.ng8877.com/?url=${javaRelease.url} ...`
|
||||||
);
|
);
|
||||||
const javaArchivePath = await tc.downloadTool('http://proxy.pascall.top:8080/' + javaRelease.url);
|
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