This commit is contained in:
XXXXRT666 2025-05-21 15:57:34 +03:00
parent efdde21344
commit ec8e9f388e

7
.github/test.ps1 vendored
View File

@ -52,6 +52,9 @@ Write-Host "Compress Starting at $start"
$end = Get-Date
Write-Host "Elapsed time: $($end - $start)"
Invoke-WebRequest -Uri "https://www.7-zip.org/a/lzma2409.7z" -OutFile "lzma2409.7z"
& "C:\Program Files\7-Zip\7z.exe" x "lzma2409.7z"
$config = @"
;!@Install@!UTF-8!
Title="GPT-SoVITS Installation"
@ -62,11 +65,11 @@ ExtractPath="."
Set-Content -Path "config.txt" -Value $config -Encoding UTF8
Get-Content config.txt
$SfxModule = "C:\Program Files\7-Zip\7z.sfx"
$SfxModule = "./lzma2409/bin/7zSD.sfx"
$SfxExePath = "$pkgName.exe"
Write-Host "[INFO] Creating self-extracting archive: $SfxExePath"
Get-ChildItem .
$cmd = 'copy /b "{0}"+"config.txt"+"{1}" "{2}"' -f $SfxModule, $7zPath, $SfxExePath
$cmd = 'copy /b "{0}" + "config.txt" + "{1}" "{2}"' -f $SfxModule, $7zPath, $SfxExePath
Write-Host "[INFO] Running CMD: $cmd"
cmd /c $cmd