fix
This commit is contained in:
@@ -384,6 +384,7 @@ pub fn run_release(
|
||||
launcher_version: Option<&str>,
|
||||
with_api: bool,
|
||||
with_mcp: bool,
|
||||
with_web: bool,
|
||||
sudo: &str,
|
||||
console: &Shared,
|
||||
) -> Result<PathBuf, String> {
|
||||
@@ -430,6 +431,19 @@ pub fn run_release(
|
||||
));
|
||||
}
|
||||
|
||||
if with_web {
|
||||
// From _WEB in the Engine checkout. Its Dockerfile runs npm inside the image, so this
|
||||
// needs Docker and nothing else - no Node, no node_modules on this PC.
|
||||
body.push_str(&format!(
|
||||
"Write-Host '=== ODIAN WEB ===' -ForegroundColor Cyan
|
||||
& '{}'
|
||||
if ($LASTEXITCODE -eq 2) {{ Write-Host 'web: already serving this commit' -ForegroundColor Yellow }}
|
||||
elseif ($LASTEXITCODE -ne 0) {{ throw 'the web step failed' }}
|
||||
",
|
||||
scripts.join("deploy_web.ps1").display()
|
||||
));
|
||||
}
|
||||
|
||||
if with_mcp {
|
||||
// LAST, always. The MCP serves /download/* and proxies /dhp, so rolling it interrupts
|
||||
// the very road the steps above publish over; anything still in flight would fail.
|
||||
|
||||
Reference in New Issue
Block a user