This commit is contained in:
XXXXRT666 2025-05-21 15:37:05 +03:00
parent 730303a9b9
commit 843e85caaf

10
.github/test.ps1 vendored
View File

@ -61,18 +61,14 @@ ExtractPath="."
"@
Set-Content -Path "config.txt" -Value $config -Encoding UTF8
# $SfxModule = "C:\Program Files\7-Zip\7z.sfx"
# $SfxExePath = "$pkgName.exe"
# Write-Host "[INFO] Creating self-extracting archive: $SfxExePath"
$SfxModule = "C:\Program Files\7-Zip\7z.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
Write-Host "[INFO] Running CMD: $cmd"
cmd /c $cmd
$cmd = 'copy /b "{0}" + "{1}" "{2}"' -f $SfxModule, $7zPath, $SfxExePath
Write-Host "[INFO] Running CMD: $cmd"
cmd /c $cmd
python -m pip install --upgrade pip
python -m pip install "modelscope" "huggingface_hub[hf_transfer]" --no-warn-script-location