Files
dbx/src-tauri/src/commands/update.rs
T
t8y2 cf4f25fd52 feat: extract dbx-core crate for web deployment support
Refactor all database drivers, query execution, schema operations, and
business logic into a shared `dbx-core` crate. The Tauri desktop app
becomes a thin shell delegating to dbx-core, enabling future web and
CLI frontends to reuse the same core.
2026-05-05 03:16:24 +08:00

9 lines
314 B
Rust

pub use dbx_core::update::UpdateInfo;
#[tauri::command]
pub async fn check_for_updates() -> Result<UpdateInfo, String> {
let release = dbx_core::update::fetch_latest_release().await?;
let current_version = env!("CARGO_PKG_VERSION");
Ok(dbx_core::update::build_update_info(release, current_version))
}