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

View File

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