diff --git a/src/downloadUtil/downloadBinaries.ts b/src/downloadUtil/downloadBinaries.ts index 3a275acd2..1dbb6f7ab 100644 --- a/src/downloadUtil/downloadBinaries.ts +++ b/src/downloadUtil/downloadBinaries.ts @@ -35,7 +35,8 @@ async function extractTool(toolsFolder: string, platform: PlatformData, currentF toolLocation = path.join(toolsFolder, platform.cmdFileName); } console.log(`Extracting ${currentFile} to ${toolLocation}`); - if (!currentFile.endsWith('.exe') && currentFile.includes('.')) { + const fileBasename = path.basename(currentFile); + if (!fileBasename.endsWith('.exe') && fileBasename.includes('.')) { await Archive.extract(currentFile, toolsFolder, platform.cmdFileName, platform.filePrefix); } else { fs.copyFileSync(currentFile, toolLocation);