@@ -93883,7 +93883,7 @@ class BaseDistribution {
9388393883 }
9388493884 throw err;
9388593885 }
93886- const toolPath = yield this.extractArchive(downloadPath, info);
93886+ const toolPath = yield this.extractArchive(downloadPath, info, true );
9388793887 core.info('Done');
9388893888 return toolPath;
9388993889 });
@@ -93933,7 +93933,7 @@ class BaseDistribution {
9393393933 return toolPath;
9393493934 });
9393593935 }
93936- extractArchive(downloadPath, info) {
93936+ extractArchive(downloadPath, info, isOfficialArchive ) {
9393793937 return __awaiter(this, void 0, void 0, function* () {
9393893938 //
9393993939 // Extract
@@ -93948,7 +93948,7 @@ class BaseDistribution {
9394893948 // on Windows runners without PowerShell Core.
9394993949 //
9395093950 // For default PowerShell Windows it should contain extension type to unpack it.
93951- if (extension === '.zip') {
93951+ if (extension === '.zip' && isOfficialArchive ) {
9395293952 const renamedArchive = `${downloadPath}.zip`;
9395393953 fs_1.default.renameSync(downloadPath, renamedArchive);
9395493954 extPath = yield tc.extractZip(renamedArchive);
@@ -94186,7 +94186,7 @@ class OfficialBuilds extends base_distribution_1.default {
9418694186 core.info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
9418794187 downloadPath = yield tc.downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.auth);
9418894188 if (downloadPath) {
94189- toolPath = yield this.extractArchive(downloadPath, versionInfo);
94189+ toolPath = yield this.extractArchive(downloadPath, versionInfo, false );
9419094190 }
9419194191 }
9419294192 else {
0 commit comments