fix
This commit is contained in:
@@ -298,14 +298,22 @@ pub fn run_release(
|
|||||||
// It ships with the release skill rather than the repo, so look there when the repo
|
// 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.
|
// has no copy. A missing script used to fail the same way a broken one does.
|
||||||
let api = api_script(&scripts).ok_or(
|
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!(
|
body.push_str(&format!(
|
||||||
"Write-Host '=== Engine API ===' -ForegroundColor Cyan
|
"Write-Host '=== Engine API ===' -ForegroundColor Cyan
|
||||||
& '{}' -NodeSudoPw $pw
|
& '{}' -NodeSudoPw $pw -EngineRoot '{}'
|
||||||
if ($LASTEXITCODE -notin 0,3) {{ throw 'the API step failed' }}
|
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()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||||
"productName": "ODIAN Launcher",
|
"productName": "ODIAN Launcher",
|
||||||
"version": "0.1.40",
|
"version": "0.1.41",
|
||||||
"identifier": "fr.odian.launcher",
|
"identifier": "fr.odian.launcher",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../dist",
|
"frontendDist": "../dist",
|
||||||
|
|||||||
Reference in New Issue
Block a user