mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-23 21:19:47 +08:00
Fix Path
This commit is contained in:
parent
4b3b90280e
commit
cbf9a9bdbd
11
.github/build_windows_packages.ps1
vendored
11
.github/build_windows_packages.ps1
vendored
@ -57,8 +57,15 @@ 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 .
|
$subdirName = $filename -replace '\.zip$', ''
|
||||||
Move-Item "$tmpDir\$($filename -replace '\.zip$', '')" "$srcDir\$targetRelPath" -Force
|
$sourcePath = Join-Path $tmpDir $subdirName
|
||||||
|
$destRoot = Join-Path $srcDir $targetRelPath
|
||||||
|
$destPath = Join-Path $destRoot $subdirName
|
||||||
|
if (Test-Path $destPath) {
|
||||||
|
Remove-Item $destPath -Recurse -Force
|
||||||
|
}
|
||||||
|
|
||||||
|
Move-Item $sourcePath $destRoot
|
||||||
Remove-Item $tmpZip
|
Remove-Item $tmpZip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user