fix(updates): guard portable builds from installer updates (#550)

This commit is contained in:
skyler authored and GitHub committed 2026-05-30 19:15:37 +08:00
1 parent 398e040d5c
commit 528b51fb8d
10 files changed
+92 -4

No files matched your search

+3 -1
View File
@@ -4,7 +4,9 @@ pub use dbx_core::update::UpdateInfo;
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))
let mut info = dbx_core::update::build_update_info(release, current_version);
info.portable_mode = crate::data_dir::is_portable_mode();
Ok(info)
}
#[tauri::command]