From 789d6665153f5df3f6d76d3e879fd4728140d632 Mon Sep 17 00:00:00 2001 From: didirus4 Date: Fri, 11 Jul 2025 03:26:04 +0300 Subject: [PATCH] refactor: windows auto updater only works with signed app --- packages/app-lib/src/api/update.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/app-lib/src/api/update.rs b/packages/app-lib/src/api/update.rs index fe24ec019..3ca0cebde 100644 --- a/packages/app-lib/src/api/update.rs +++ b/packages/app-lib/src/api/update.rs @@ -18,7 +18,7 @@ pub(crate) async fn get_resource( let bytes = response.bytes().await?; let mut dest_file = AsyncFile::create(&full_path).await?; dest_file.write_all(&bytes).await?; - println!("[AR] • File downloaded to: {:?}", full_path); + tracing::info!("[AR] • File downloaded to: {:?}", full_path); if auto_update_supported { let result = match os_type.to_lowercase().as_str() { @@ -28,8 +28,8 @@ pub(crate) async fn get_resource( }; match result { - Ok(_) => println!("[AR] • File opened successfully!"), - Err(e) => eprintln!("[AR] • Failed to open file: {e}"), + Ok(_) => tracing::info!("[AR] • File opened successfully!"), + Err(e) => tracing::info!("[AR] • Failed to open file: {e}"), } } @@ -44,7 +44,7 @@ async fn handle_windows_file(path: &PathBuf) -> Result<(), Box Result<(), Box