修改代理网址
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) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from http://proxy.pascall.top:8080/${javaRelease.url} ...`);
|
||||
const javaArchivePath = yield tc.downloadTool('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('https://proxy.ng8877.com/?url=' + javaRelease.url);
|
||||
core.info(`Extracting Java archive...`);
|
||||
const extension = util_1.getDownloadArchiveExtension();
|
||||
const extractedJavaPath = yield util_1.extractJdkFile(javaArchivePath, extension);
|
||||
|
||||
@ -74,9 +74,9 @@ export class TemurinDistribution extends JavaBase {
|
||||
javaRelease: JavaDownloadRelease
|
||||
): Promise<JavaInstallerResults> {
|
||||
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...`);
|
||||
const extension = getDownloadArchiveExtension();
|
||||
|
||||
Reference in New Issue
Block a user