Skip to content

Commit 0cf2d99

Browse files
authored
fix(tauri-driver): append .exe ext on app path on Windows, closes #11317 (#13238)
1 parent 1734273 commit 0cf2d99

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changes/webdriver-app-ext.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-driver": patch:enhance
3+
---
4+
5+
Automatically append the `.exe` extension on the application path in `tauri:options`.

crates/tauri-driver/src/server.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ impl TauriOptions {
5151
#[cfg(target_os = "windows")]
5252
fn into_native_object(self) -> Map<String, Value> {
5353
let mut ms_edge_options = Map::new();
54-
ms_edge_options.insert("binary".into(), json!(self.application));
54+
ms_edge_options.insert(
55+
"binary".into(),
56+
json!(self.application.with_extension("exe")),
57+
);
5558
ms_edge_options.insert("args".into(), self.args.into());
5659

5760
if let Some(webview_options) = self.webview_options {

0 commit comments

Comments
 (0)