From 146b1c50b929522d97c0bd702e194fadfe6b5775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Sun, 4 Oct 2026 15:43:29 +0500 Subject: [PATCH] Release Manager 0.6.1 and preserve Docker lifecycle compatibility --- CHANGELOG.md | 8 ++++++++ Cargo.lock | 6 +++--- Cargo.toml | 2 +- crates/coa-core/src/docker/lifecycle.rs | 14 ++++++++++++-- docs/REPAIR_AND_REALMS.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src-tauri/tauri.conf.json | 2 +- 8 files changed, 29 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e465b15..d6f7b96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CoA Server Manager changelog +## 0.6.1 — 2026-10-04 + +- PLAY launches only the client with the selected realmlist; starting the local server remains a separate action. +- Server multipliers accept decimals typed with a dot or comma. Talent and rested experience descriptions now explain their actual behavior. +- Added database and file checks, and Repair with backups and signed package verification. Unresolved schema damage is reported instead of guessed repairs. +- Fixed character database rebuilds retaining migration history that could skip required SQL. Applied migration hash changes are now rejected. +- Added optional simultaneous CoA and Wildcard worlds on Windows, with separate processes, ports and status indicators. + ## 0.6.0 — 2026-10-03 - Added Simplified Chinese for the interface and all server and bot settings. diff --git a/Cargo.lock b/Cargo.lock index d2075f6..1881bdf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -491,7 +491,7 @@ dependencies = [ [[package]] name = "coa-core" -version = "0.6.0" +version = "0.6.1" dependencies = [ "base64 0.22.1", "chrono", @@ -519,7 +519,7 @@ dependencies = [ [[package]] name = "coa-release" -version = "0.6.0" +version = "0.6.1" dependencies = [ "chrono", "coa-core", @@ -528,7 +528,7 @@ dependencies = [ [[package]] name = "coa-server-manager" -version = "0.6.0" +version = "0.6.1" dependencies = [ "coa-core", "serde", diff --git a/Cargo.toml b/Cargo.toml index 5051dda..6ee678e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/coa-core", "crates/coa-release", "src-tauri"] [workspace.package] -version = "0.6.0" +version = "0.6.1" edition = "2021" license = "AGPL-3.0-only" diff --git a/crates/coa-core/src/docker/lifecycle.rs b/crates/coa-core/src/docker/lifecycle.rs index a96979f..cdac849 100644 --- a/crates/coa-core/src/docker/lifecycle.rs +++ b/crates/coa-core/src/docker/lifecycle.rs @@ -59,6 +59,7 @@ pub fn run_with(d: &dyn Docker, root: &Path, verb: Verb) -> Result return Err(crate::Error::Invalid("Starting a secondary world is not supported for Docker servers.".into())), Verb::StartAll => start(d, root, &cfg, true, &mut log), Verb::StartMysql => start(d, root, &cfg, false, &mut log), Verb::StopAll => stop(d, &cfg, &mut log), @@ -429,11 +430,11 @@ pub fn observe(root: &Path, ports: &Ports) -> Observed { pub fn observe_with(d: &dyn Docker, root: &Path, ports: &Ports) -> Observed { let unknown = |name: &'static str, port: u16| ServiceStatus { name, state: ServiceState::Unknown, pid: None, port, port_ready: false, conflict: None, uptime_secs: None }; let Ok(cfg) = Config::load(root) else { - return Observed { mysql: unknown("mysql", ports.mysql), auth: unknown("auth", ports.auth), world: unknown("world", ports.world) }; + return Observed { mysql: unknown("mysql", ports.mysql), auth: unknown("auth", ports.auth), world: unknown("world", ports.world), secondary_world: None }; }; let n = cfg.names(); let Ok(state) = inspect(d, &[&n.db, &n.world, &n.auth]) else { - return Observed { mysql: unknown("mysql", ports.mysql), auth: unknown("auth", ports.auth), world: unknown("world", ports.world) }; + return Observed { mysql: unknown("mysql", ports.mysql), auth: unknown("auth", ports.auth), world: unknown("world", ports.world), secondary_world: None }; }; let ip = connect_ip(&cfg); let listening = |c: Option<&Container>, port: u16| c.is_some_and(Container::running) && d.port_open(SocketAddr::new(ip, port)); @@ -441,6 +442,7 @@ pub fn observe_with(d: &dyn Docker, root: &Path, ports: &Ports) -> Observed { mysql: status("mysql", state.get(&n.db), ports.mysql, state.get(&n.db).is_some_and(|c| c.health.as_deref() == Some("healthy"))), auth: status("auth", state.get(&n.auth), ports.auth, listening(state.get(&n.auth), ports.auth)), world: status("world", state.get(&n.world), ports.world, listening(state.get(&n.world), ports.world)), + secondary_world: None, } } @@ -741,6 +743,14 @@ mod tests { assert!(sim.calls_of("build").is_empty()); } + #[test] + fn secondary_world_start_is_rejected_without_touching_containers() { + let (_d, root) = server("t1"); + let sim = Sim::new(); + assert!(run_with(&sim, &root, Verb::StartWorld).is_err()); + assert!(sim.calls.borrow().is_empty()); + } + #[test] fn stop_goes_world_then_auth_then_database_with_time_to_save() { let (_d, root) = server("t1"); diff --git a/docs/REPAIR_AND_REALMS.md b/docs/REPAIR_AND_REALMS.md index a41c24c..b59fc28 100644 --- a/docs/REPAIR_AND_REALMS.md +++ b/docs/REPAIR_AND_REALMS.md @@ -10,7 +10,7 @@ Repair reports unresolved schema damage. It does not guess ALTER statements or r ## Release schema contracts -`clean-base` clears the character migration ledger after rebuilding the character database and captures `Scripts/database-schema.json`. It contains expected table/column names, types, nullability, defaults and generated/auto-increment attributes. Installation and migration validation inspect this contract; older packages receive the narrower character-save checks, clearly labelled in the UI. Required custom columns with no default that initial character saves do not supply are also reported. +`clean-base` clears the character migration ledger after rebuilding the character database and captures `Scripts/database-schema.json`. It contains expected table/column names and column types. Installation and migration validation inspect this contract; older packages receive the narrower character-save checks, clearly labelled in the UI. For each update, capture a fresh contract **from a disposable database already migrated to the exact packaged core**, into the release tree before `pack-update`: diff --git a/package-lock.json b/package-lock.json index 34f81a4..5df792d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coa-server-manager", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coa-server-manager", - "version": "0.6.0", + "version": "0.6.1", "dependencies": { "@tauri-apps/api": "^2.12.0", "@tauri-apps/plugin-dialog": "^2.8.0", diff --git a/package.json b/package.json index ae7fe70..28a1341 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coa-server-manager", "private": true, - "version": "0.6.0", + "version": "0.6.1", "license": "AGPL-3.0-only", "type": "module", "scripts": { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a18bbdb..0fa8edd 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "CoA Server Manager", - "version": "0.6.0", + "version": "0.6.1", "identifier": "com.coa.servermanager", "build": { "beforeDevCommand": "npm run dev",