Jelajahi Sumber

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

Amr Bashir 4 tahun lalu
induk
melakukan
2b8e93fb94
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();