On windows extracting the zip does not create an intermediate directory

This commit is contained in:
Kevin Stillhammer 2024-08-24 09:20:02 +02:00
parent 4203354a33
commit 3e3aecd6b6
No known key found for this signature in database
3 changed files with 16 additions and 37 deletions

View file

@ -29,8 +29,8 @@ export async function downloadLatest(
let uvExecutablePath: string
let uvDir: string
if (platform === 'pc-windows-msvc') {
const extractedDir = await tc.extractZip(downloadPath)
uvDir = path.join(extractedDir, artifact)
uvDir = await tc.extractZip(downloadPath)
// On windows extracting the zip does not create an intermediate directory
uvExecutablePath = path.join(uvDir, 'uv.exe')
} else {
const extractedDir = await tc.extractTar(downloadPath)