From e7a289f352d5a8d1d6372e559f729b7e59e8001c Mon Sep 17 00:00:00 2001 From: krdlab <krdlab@gmail.com> Date: Wed, 17 Jan 2024 00:42:02 +0900 Subject: [PATCH] fix: change installation path of assets --- src/asset.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asset.ts b/src/asset.ts index f0feb78..53c9e92 100644 --- a/src/asset.ts +++ b/src/asset.ts @@ -46,7 +46,8 @@ abstract class Asset { private async download() { const downloadPath = await tc.downloadTool(this.downloadUrl); - const extractPath = await this.extract(downloadPath, this.fileNameWithoutExt, this.fileExt); + const dest = path.join(path.dirname(downloadPath), this.fileNameWithoutExt); + const extractPath = await this.extract(downloadPath, dest, this.fileExt); const toolRoot = await this.findToolRoot(extractPath, this.isDirectoryNested); if (!toolRoot) {