fix: app version to string
This commit is contained in:
parent
515af472ce
commit
35d0438261
@ -69,8 +69,8 @@ pub fn app_resources_dir(package_info: &PackageInfo) -> PathBuf {
|
|||||||
unsafe {
|
unsafe {
|
||||||
RESOURCE_DIR = Some(res_dir.clone());
|
RESOURCE_DIR = Some(res_dir.clone());
|
||||||
|
|
||||||
let ver = &package_info.version;
|
let ver = package_info.version.to_string();
|
||||||
let ver_str = format!("v{}.{}.{}", ver.major, ver.minor, ver.patch);
|
let ver_str = format!("v{ver}");
|
||||||
APP_VERSION = Box::leak(Box::new(ver_str));
|
APP_VERSION = Box::leak(Box::new(ver_str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user