mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-23 03:29:46 +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"
|
||||
Invoke-WebRequest $url -OutFile $tmpZip
|
||||
Expand-Archive -Path $tmpZip -DestinationPath $tmpDir -Force
|
||||
Get-ChildItem .
|
||||
Move-Item "$tmpDir\$($filename -replace '\.zip$', '')" "$srcDir\$targetRelPath" -Force
|
||||
$subdirName = $filename -replace '\.zip$', ''
|
||||
$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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user