Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Release script: build the service before the tests, so the MCP test checks this version

Gabriele Lozupone4a8902062caa
diff --git a/scripts/build-release.ps1 b/scripts/build-release.ps1
index d9251e6..c2ec161 100644
--- a/scripts/build-release.ps1
+++ b/scripts/build-release.ps1
@@ -13,6 +13,10 @@ $env:Path = "$env:USERPROFILE\.cargo\bin;$env:Path"
Write-Host "1/5 Tests (Rust core + frontend + MCP)" -ForegroundColor Cyan
cargo test -p qls-core --release --quiet
if ($LASTEXITCODE) { throw "Rust tests failed" }
+# The MCP protocol test runs the newest target\*\kokon-service.exe, which Tauri overwrites with
+# the bundled sidecar of the previous release: build this version's service first.
+cargo build -p qls-service --release
+if ($LASTEXITCODE) { throw "service build failed" }
npx vitest run
if ($LASTEXITCODE) { throw "Frontend tests failed" }
Push-Location mcp; npx vitest run; $rc = $LASTEXITCODE; Pop-Location