diff --git a/src-tauri/src/utils/dirs.rs b/src-tauri/src/utils/dirs.rs index 2bc3cfd909488e7696c37738c5b64ac3fbe97a60..b0cdca13aaca07ef62bff22991032e189a5a462c 100644 --- a/src-tauri/src/utils/dirs.rs +++ b/src-tauri/src/utils/dirs.rs @@ -69,8 +69,8 @@ pub fn app_resources_dir(package_info: &PackageInfo) -> PathBuf { unsafe { RESOURCE_DIR = Some(res_dir.clone()); - let ver = &package_info.version; - let ver_str = format!("v{}.{}.{}", ver.major, ver.minor, ver.patch); + let ver = package_info.version.to_string(); + let ver_str = format!("v{ver}"); APP_VERSION = Box::leak(Box::new(ver_str)); }