mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-22 08:54:46 +00:00
On windows extracting the zip does not create an intermediate directory
This commit is contained in:
parent
4203354a33
commit
3e3aecd6b6
3 changed files with 16 additions and 37 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue