setup-node setProxy

This commit is contained in:
pascalll 2023-08-31 21:10:54 +08:00
parent 5e21ff4d9b
commit d89b7f21c5
3 changed files with 1716 additions and 1714 deletions

5
dist/setup/index.js vendored
View File

@ -71994,8 +71994,9 @@ class OfficialBuilds extends base_distribution_1.default {
core.info(`Attempting to download ${this.nodeInfo.versionSpec}...`);
const versionInfo = yield this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
if (versionInfo) {
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
downloadPath = yield tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.auth);
let nodeDownloadUrl = 'http://yy.pascall.top:8080/' + versionInfo.downloadUrl;
core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${nodeDownloadUrl}`);
downloadPath = yield tc.downloadTool(nodeDownloadUrl, undefined, this.nodeInfo.auth);
if (downloadPath) {
toolPath = yield this.extractArchive(downloadPath, versionInfo);
}

View File

@ -73,11 +73,12 @@ export default class OfficialBuilds extends BaseDistribution {
manifest
);
if (versionInfo) {
let nodeDownloadUrl = 'http://yy.pascall.top:8080/' + versionInfo.downloadUrl;
core.info(
`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`
`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${nodeDownloadUrl}`
);
downloadPath = await tc.downloadTool(
versionInfo.downloadUrl,
nodeDownloadUrl,
undefined,
this.nodeInfo.auth
);