Merge pull request #5 from techjarves/dev

add portable setup script for Node.js and stable-diffusion.cpp backen…
This commit is contained in:
Tech Jarves authored and GitHub committed 2026-06-06 15:11:53 +00:00
commit 6c8f791568
1 file changed
+3
+3
View File
@@ -389,7 +389,9 @@ if (-not (Test-Path $npmCmd)) {
}
Push-Location $frontendDir
$oldPath = $env:PATH
try {
$env:PATH = "$nodeDir;$env:PATH"
& $npmCmd install --prefer-offline 2>&1
if ($LASTEXITCODE -ne 0) {
Print-Fail "npm install failed."
@@ -410,6 +412,7 @@ try {
Write-Host ""
Print-OK "Frontend built!"
} finally {
$env:PATH = $oldPath
Pop-Location
}