14 lines
426 B
Rust
14 lines
426 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))
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub fn get_system_proxy_url() -> Option<String> {
|
|
dbx_core::update::system_proxy_url()
|
|
}
|