diff --git a/.github/build_windows_packages.ps1 b/.github/build_windows_packages.ps1 index f133d1bc..ad87dcf3 100644 --- a/.github/build_windows_packages.ps1 +++ b/.github/build_windows_packages.ps1 @@ -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 } diff --git a/.github/workflows/build_windows_packages.yaml b/.github/workflows/build_windows_packages.yaml index 567ca52a..f348facc 100644 --- a/.github/workflows/build_windows_packages.yaml +++ b/.github/workflows/build_windows_packages.yaml @@ -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 \ No newline at end of file + pwsh -Command "& { $env:workDir='$curr'; ./build_windows_packages.ps1 }" \ No newline at end of file