This commit is contained in:
XXXXRT666 2025-05-14 02:05:19 +01:00
parent 2f17eea541
commit 6bc8f86bef

View File

@ -2,6 +2,7 @@ $ErrorActionPreference = "Stop"
$workDir = $env:WORK_DIR $workDir = $env:WORK_DIR
Set-Location $workDir Set-Location $workDir
Get-ChildItem .
$today = Get-Date -Format "MMdd" $today = Get-Date -Format "MMdd"
$cuda = $env:TORCH_CUDA $cuda = $env:TORCH_CUDA
@ -52,6 +53,9 @@ function DownloadAndUnzip($url, $targetRelPath) {
$tmpZip = "$tmpDir\$filename" $tmpZip = "$tmpDir\$filename"
Invoke-WebRequest $url -OutFile $tmpZip Invoke-WebRequest $url -OutFile $tmpZip
Expand-Archive -Path $tmpZip -DestinationPath $tmpDir -Force Expand-Archive -Path $tmpZip -DestinationPath $tmpDir -Force
Get-ChildItem .
Write-Host "$tmpDir\$($filename -replace '\.zip$', '')"
Write-Host "$srcDir\$targetRelPath"
Move-Item "$tmpDir\$($filename -replace '\.zip$', '')" "$srcDir\$targetRelPath" -Force Move-Item "$tmpDir\$($filename -replace '\.zip$', '')" "$srcDir\$targetRelPath" -Force
Remove-Item $tmpZip Remove-Item $tmpZip
} }