Skip to content
Snippets Groups Projects
Unverified Commit 35d04382 authored by GyDi's avatar GyDi
Browse files

fix: app version to string

parent 515af472
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment