Check release compatibility and recover unhealthy updates automatically

This commit is contained in:
Дмитрий committed 2026-10-10 12:22:14 +05:00
1 parent a9ab7ced7e
commit 02843bb6d1
11 files changed
+150 -11

No files matched your search

+3 -1
View File
@@ -831,7 +831,9 @@ async fn apply_update(
let _guard = BusyGuard::acquire(&state, &id)?;
blocking(move || {
let src = update_source(source)?;
let (dir, _) = install_meta(&root)?;
let (dir, meta) = install_meta(&root)?;
let (manifest, _) = coa_core::pkgsource::fetch_manifest(&src, coa_core::signing::EMBEDDED_PUBLIC_KEY)?;
update::validate_candidate(&meta, &manifest)?;
// Files cannot be replaced while the server runs: stop it first (gracefully), like the Stop button.
let observed = coa_core::process::observe(&root, &layout::read_ports(&root));
if observed.world.state != coa_core::process::ServiceState::Stopped || observed.auth.state != coa_core::process::ServiceState::Stopped || coa_core::multiworld::is_running(&root) {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "CoA Server Manager",
"version": "0.6.12",
"version": "0.6.13",
"identifier": "com.coa.servermanager",
"build": {
"beforeDevCommand": "npm run dev",