mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-29 11:01:17 +00:00
On windows extracting the zip does not create an intermediate directory
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user