fix: register missing updater commands
All checks were successful
Test / frontend-tests (pull_request) Successful in 1m45s
Test / frontend-typecheck (pull_request) Successful in 1m54s
PR Review Automation / review (pull_request) Successful in 4m11s
Test / rust-fmt-check (pull_request) Successful in 13m22s
Test / rust-clippy (pull_request) Successful in 15m5s
Test / rust-tests (pull_request) Successful in 17m15s

- Add check_app_updates, install_app_updates, get_update_channel, set_update_channel to Tauri handler
- Add unit tests for update channel functionality

This fixes the 'Command check_app_updates not found' and 'Failed to update channel' errors reported in the latest build.
This commit is contained in:
Shaun Arman 2026-06-13 19:35:09 -05:00
parent 29dd469d31
commit 2fae73fb3a
2 changed files with 17 additions and 0 deletions

View File

@ -626,4 +626,17 @@ mod updater_tests {
assert!(!is_newer_version("", "1.0.0")); assert!(!is_newer_version("", "1.0.0"));
assert!(!is_newer_version("1.0.0", "")); assert!(!is_newer_version("1.0.0", ""));
} }
#[test]
fn test_update_channel_default() {
let settings = AppSettings::default();
assert_eq!(settings.update_channel, "stable");
}
#[test]
fn test_update_channel_serialization() {
let settings = AppSettings::default();
let json = serde_json::to_string(&settings).unwrap();
assert!(json.contains("\"stable\""));
}
} }

View File

@ -256,6 +256,10 @@ pub fn run() {
commands::system::get_sudo_config_status, commands::system::get_sudo_config_status,
commands::system::test_sudo_password, commands::system::test_sudo_password,
commands::system::clear_sudo_password, commands::system::clear_sudo_password,
commands::system::check_app_updates,
commands::system::install_app_updates,
commands::system::get_update_channel,
commands::system::set_update_channel,
// MCP Servers // MCP Servers
mcp::commands::list_mcp_servers, mcp::commands::list_mcp_servers,
mcp::commands::create_mcp_server, mcp::commands::create_mcp_server,