mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-07-12 11:01:09 +08:00
WIP
This commit is contained in:
parent
efdde21344
commit
ec8e9f388e
7
.github/test.ps1
vendored
7
.github/test.ps1
vendored
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user