diff --git a/.github/test.ps1 b/.github/test.ps1 index 68261444..7da18625 100644 --- a/.github/test.ps1 +++ b/.github/test.ps1 @@ -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