Skip to content

Commit

Permalink
fix: fix installation build in powershell (windows)
Browse files Browse the repository at this point in the history
New-TemporaryFile doesn't work in cmd
More info: PowerShell/PowerShell#14100
  • Loading branch information
khoind4 authored and yuchanns committed Nov 22, 2024
1 parent 341ecd2 commit 934602b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Download-Prebuilt($feature) {
}

# Download and extract the artifact
$TempFile = New-TemporaryFile | Rename-Item -NewName { $_.Name + ".zip" } -PassThru
$TempFile = Get-Item ([System.IO.Path]::GetTempFilename()) | Rename-Item -NewName { $_.Name + ".zip" } -PassThru
Invoke-WebRequest -Uri $ARTIFACT_URL -OutFile $TempFile
Expand-Archive -Path $TempFile -DestinationPath $TARGET_DIR -Force
Remove-Item $TempFile
Expand Down

0 comments on commit 934602b

Please sign in to comment.