From e1f4c15facc0cf68c0e764340e374be034e4a859 Mon Sep 17 00:00:00 2001 From: Gregory Mitchell <54124162+gmitch215@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:44:58 -0500 Subject: [PATCH] Fix Windows Support --- dist/setup/index.js | 2 +- src/distributions/jetbrains/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 5350a0f..10e84f4 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -124180,7 +124180,7 @@ class JetBrainsDistribution extends base_installer_1.JavaBase { core.info(`Downloading Java ${javaRelease.version} (${this.distribution}) from ${javaRelease.url} ...`); const javaArchivePath = yield tc.downloadTool(javaRelease.url); core.info(`Extracting Java archive...`); - const extractedJavaPath = yield (0, util_1.extractJdkFile)(javaArchivePath); + const extractedJavaPath = yield (0, util_1.extractJdkFile)(javaArchivePath, "tar.gz"); const archiveName = fs_1.default.readdirSync(extractedJavaPath)[0]; const archivePath = path_1.default.join(extractedJavaPath, archiveName); const version = this.getToolcacheVersionName(javaRelease.version); diff --git a/src/distributions/jetbrains/installer.ts b/src/distributions/jetbrains/installer.ts index b51d120..efe0cce 100644 --- a/src/distributions/jetbrains/installer.ts +++ b/src/distributions/jetbrains/installer.ts @@ -68,7 +68,7 @@ export class JetBrainsDistribution extends JavaBase { const javaArchivePath = await tc.downloadTool(javaRelease.url); core.info(`Extracting Java archive...`); - const extractedJavaPath = await extractJdkFile(javaArchivePath); + const extractedJavaPath = await extractJdkFile(javaArchivePath, "tar.gz"); const archiveName = fs.readdirSync(extractedJavaPath)[0]; const archivePath = path.join(extractedJavaPath, archiveName);