agentmux_srv_core/backend/update/mod.rs
1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! The in-app updater: the check for a newer release, its download and signature, and the install, unpack and restart.
5
6pub mod auto;
7pub mod check;
8pub mod download;
9pub mod install;
10pub mod restart;
11pub mod signature;
12pub mod signed_source;
13pub mod unpack;
14
15/// Get the updater ready and start its background check (`check::init`, `auto::spawn`). A headless server never checks by itself.
16pub fn init(event_bus: std::sync::Arc<crate::backend::eventbus::EventBus>, config: std::sync::Arc<crate::backend::wconfig::ConfigState>, headless: bool) {
17 check::init(event_bus);
18 auto::spawn(config, headless);
19}