Compare commits

..

3 Commits

Author SHA1 Message Date
22ddacbae3 update proxy domain 2023-10-23 11:08:08 +08:00
1ff89544d4 update porxy url 2023-08-29 21:04:51 +08:00
487be22239 setup-java 设置github代理 2023-08-05 12:19:34 +08:00
2 changed files with 4 additions and 6 deletions

5
dist/setup/index.js vendored
View File

@ -103413,9 +103413,8 @@ class TemurinDistribution extends base_installer_1.JavaBase {
}
downloadTool(javaRelease) {
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 ${javaReleaseUrl} ...`);
const javaArchivePath = yield tc.downloadTool(javaReleaseUrl);
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(`Extracting Java archive...`);
const extension = util_1.getDownloadArchiveExtension();
const extractedJavaPath = yield util_1.extractJdkFile(javaArchivePath, extension);

View File

@ -73,11 +73,10 @@ export class TemurinDistribution extends JavaBase {
protected async downloadTool(
javaRelease: JavaDownloadRelease
): Promise<JavaInstallerResults> {
const javaReleaseUrl = 'http://yy.dsad.lol:8080/' + javaRelease.url;
core.info(
`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaReleaseUrl} ...`
`Downloading Java ${javaRelease.version} (${this.distribution}) from http://proxy.pascall.top:8080/${javaRelease.url} ...`
);
const javaArchivePath = await tc.downloadTool(javaReleaseUrl);
const javaArchivePath = await tc.downloadTool('http://proxy.pascall.top:8080/' + javaRelease.url);
core.info(`Extracting Java archive...`);
const extension = getDownloadArchiveExtension();