diff --git a/apps/app/src/main.rs b/apps/app/src/main.rs index 7047f1ebe..663a04c82 100644 --- a/apps/app/src/main.rs +++ b/apps/app/src/main.rs @@ -119,12 +119,12 @@ fn main() { #[cfg(feature = "updater")] { use tauri_plugin_http::reqwest::header::{HeaderValue, USER_AGENT}; - use theseus::LAUNCHER_USER_AGENT; + use theseus::launcher_user_agent; builder = builder.plugin( tauri_plugin_updater::Builder::new() .header( USER_AGENT, - HeaderValue::from_str(LAUNCHER_USER_AGENT).unwrap(), + HeaderValue::from_str(&launcher_user_agent()).unwrap(), ) .unwrap() .build(), diff --git a/apps/app/src/updater_impl.rs b/apps/app/src/updater_impl.rs index 7981f7280..736428cfb 100644 --- a/apps/app/src/updater_impl.rs +++ b/apps/app/src/updater_impl.rs @@ -8,7 +8,7 @@ use tauri_plugin_http::reqwest::ClientBuilder; use tauri_plugin_updater::Error; use tauri_plugin_updater::Update; use theseus::{ - LAUNCHER_USER_AGENT, LoadingBarType, emit_loading, init_loading, + LoadingBarType, emit_loading, init_loading, launcher_user_agent, }; use tokio::time::Instant; @@ -31,7 +31,7 @@ pub async fn get_update_size( ); } - let mut request = ClientBuilder::new().user_agent(LAUNCHER_USER_AGENT); + let mut request = ClientBuilder::new().user_agent(launcher_user_agent()); if let Some(timeout) = update.timeout { request = request.timeout(timeout); }