This commit is contained in:
XXXXRT666 2025-05-14 02:25:23 +01:00
parent 669fd7d56e
commit 3ac3fffa75
2 changed files with 1 additions and 5 deletions

View File

@ -18,7 +18,6 @@ if ($date -and $date.Trim() -ne "") {
$pkgName = "GPT-SoVITS-$date"
$tmpDir = "tmp"
$srcDir = $workDir
Write-Host "111$workDir"
$suffix = $env:PKG_SUFFIX
if ($suffix -and $suffix.Trim() -ne "") {
@ -61,8 +60,6 @@ function DownloadAndUnzip($url, $targetRelPath) {
Invoke-WebRequest $url -OutFile $tmpZip
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
Remove-Item $tmpZip
}

View File

@ -35,8 +35,7 @@ jobs:
shell: pwsh
run: |
$curr = Get-Location
echo "WORK_DIR=$curr" >> $env:GITHUB_ENV
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
Set-Location ../
Get-ChildItem .
./build_windows_packages.ps1
pwsh -Command "& { $env:workDir='$curr'; ./build_windows_packages.ps1 }"