mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-23 13:41:12 +00:00
Sparkle-parity self-update for the apps/linux companion: tauri-plugin-updater + process, checked silently on launch and from a "Check for Updates" tray item / manual trigger. AppImage installs download, verify the signed update, and wait for a user-confirmed restart; package-managed (deb) installs get a release-page notice instead of replacing files the system package manager owns. The linux-app release workflow signs the AppImage and publishes a signed latest.json manifest that the app verifies with the committed minisign public key.
22 lines
693 B
Rust
22 lines
693 B
Rust
fn main() {
|
|
// Command metadata generates capability permissions independently of the
|
|
// target's invoke handler, so keep the Linux-only command permission known.
|
|
const COMMANDS: &[&str] = &[
|
|
"bootstrap",
|
|
"canvas_a2ui_action",
|
|
"check_for_updates",
|
|
"connect_discovered_gateway",
|
|
"discover_gateways",
|
|
"gateway_action",
|
|
"install_cli",
|
|
"open_release_page",
|
|
"relaunch",
|
|
"updater_ready",
|
|
];
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new()
|
|
.app_manifest(tauri_build::AppManifest::new().commands(COMMANDS)),
|
|
)
|
|
.expect("Tauri build configuration should be valid");
|
|
}
|