Эх сурвалжийг харах

fix(tauri-api): remove .exe from app_name on windows (#1379)

Amr Bashir 4 жил өмнө
parent
commit
2b8e93fb94
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      tauri-api/src/path.rs

+ 1 - 1
tauri-api/src/path.rs

@@ -189,7 +189,7 @@ pub fn resource_dir() -> Option<PathBuf> {
 fn app_name() -> crate::Result<String> {
   let exe = std::env::current_exe()?;
   let app_name = exe
-    .file_name()
+    .file_stem()
     .expect("failed to get exe filename")
     .to_string_lossy();