mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-04 13:10:04 +08:00
.
This commit is contained in:
parent
72a9c1daba
commit
1059fc3858
25
.github/build_windows_packages.ps1
vendored
25
.github/build_windows_packages.ps1
vendored
@ -24,6 +24,29 @@ if (-not [string]::IsNullOrWhiteSpace($suffix)) {
|
|||||||
|
|
||||||
$pkgName = "$pkgName-$cuda"
|
$pkgName = "$pkgName-$cuda"
|
||||||
|
|
||||||
|
$SevenZipPath = "C:\Program Files\7-Zip\7z.exe"
|
||||||
|
$SevenZipDir = Split-Path $SevenZipPath
|
||||||
|
$CodecsDir = Join-Path $SevenZipDir "Codecs"
|
||||||
|
|
||||||
|
$Url = "https://github.com/mcmilk/7-Zip-zstd/releases/download/v25.01-v1.5.7-R1/Codecs-x64.7z"
|
||||||
|
|
||||||
|
$TempArchive = "$env:TEMP\Codecs-x64.7z"
|
||||||
|
|
||||||
|
Write-Host "Downloading 7-Zip Zstd plugin..."
|
||||||
|
Invoke-WebRequest -Uri $Url -OutFile $TempArchive
|
||||||
|
|
||||||
|
if (-not (Test-Path $CodecsDir)) {
|
||||||
|
New-Item -Path $CodecsDir -ItemType Directory | Out-Null
|
||||||
|
Write-Host "Created Codecs directory: $CodecsDir"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Extracting plugin..."
|
||||||
|
& $SevenZipPath x $TempArchive "-o$CodecsDir" -y | Out-Null
|
||||||
|
|
||||||
|
Remove-Item $TempArchive -Force
|
||||||
|
|
||||||
|
Write-Host "Patch complete. Installed plugins in $CodecsDir"
|
||||||
|
|
||||||
$baseHF = "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main"
|
$baseHF = "https://huggingface.co/XXXXRT/GPT-SoVITS-Pretrained/resolve/main"
|
||||||
$PRETRAINED_URL = "$baseHF/pretrained_models.zip"
|
$PRETRAINED_URL = "$baseHF/pretrained_models.zip"
|
||||||
$G2PW_URL = "$baseHF/G2PWModel.zip"
|
$G2PW_URL = "$baseHF/G2PWModel.zip"
|
||||||
@ -168,7 +191,7 @@ Copy-Item -Path $curr -Destination $pkgName -Recurse
|
|||||||
$7zPath = "$pkgName.7z"
|
$7zPath = "$pkgName.7z"
|
||||||
$start = Get-Date
|
$start = Get-Date
|
||||||
Write-Host "Compress Starting at $start"
|
Write-Host "Compress Starting at $start"
|
||||||
& "C:\Program Files\7-Zip\7z.exe" a -t7z "$7zPath" "$pkgName" -m0=ZSTD -mx=9 -mmt=on -bsp1
|
& "C:\Program Files\7-Zip\7z.exe" a -t7z "$7zPath" "$pkgName" -m0=bcj -m1=zstd -mx=22 -mmt=on -bsp1
|
||||||
$end = Get-Date
|
$end = Get-Date
|
||||||
Write-Host "Elapsed time: $($end - $start)"
|
Write-Host "Elapsed time: $($end - $start)"
|
||||||
Get-ChildItem .
|
Get-ChildItem .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user