From e28101ada5a06a1cda76b7790834438a2d2dcd3c Mon Sep 17 00:00:00 2001 From: Kelorastus <108483685+Kelorastus@users.noreply.github.com> Date: Wed, 30 Sep 2026 16:02:30 +0200 Subject: [PATCH] fix --- src-tauri/src/release.rs | 14 +++++++++++--- src-tauri/tauri.conf.json | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/release.rs b/src-tauri/src/release.rs index 5bab2f4..3c3fe78 100644 --- a/src-tauri/src/release.rs +++ b/src-tauri/src/release.rs @@ -298,14 +298,22 @@ pub fn run_release( // It ships with the release skill rather than the repo, so look there when the repo // has no copy. A missing script used to fail the same way a broken one does. let api = api_script(&scripts).ok_or( - "deploy-api.ps1 is neither in the repo's scripts nor in the release skill: the API cannot be rolled.", + format!( + "deploy-api.ps1 is not in {}. Pull ODIAN_MCP_Server on this PC, or untick the Engine API.", + scripts.display() + ), )?; body.push_str(&format!( "Write-Host '=== Engine API ===' -ForegroundColor Cyan - & '{}' -NodeSudoPw $pw + & '{}' -NodeSudoPw $pw -EngineRoot '{}' if ($LASTEXITCODE -notin 0,3) {{ throw 'the API step failed' }} ", - api.display() + api.display(), + // The checkout is the sibling of ODIAN_MCP_Server, which is what `mcp_repo` names. + // Passed explicitly so the script does not have to guess from where it was loaded - + // it can come from the repo or from the release skill, and only one of those is a + // sibling of the Engine. + mcp_repo.parent().unwrap_or(mcp_repo).join("ODIAN_Engine").display() )); } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6697bfc..519342d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "ODIAN Launcher", - "version": "0.1.40", + "version": "0.1.41", "identifier": "fr.odian.launcher", "build": { "frontendDist": "../dist",