mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-23 19:52:31 +03:00
support 1.x automation env var in tauri-driver
(#10738)
* support 1.x and 2.x automation env var * changefile
This commit is contained in:
parent
f4d5241b37
commit
5f64ed2b78
5
.changes/tauri-driver-1.x.md
Normal file
5
.changes/tauri-driver-1.x.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-driver": patch:bug
|
||||
---
|
||||
|
||||
support both 1.x and 2.x automation env vars in `tauri-driver`
|
@ -45,7 +45,8 @@ pub fn native(args: &Args) -> Command {
|
||||
};
|
||||
|
||||
let mut cmd = Command::new(native_binary);
|
||||
cmd.env("TAURI_WEBVIEW_AUTOMATION", "true");
|
||||
cmd.env("TAURI_AUTOMATION", "true"); // 1.x
|
||||
cmd.env("TAURI_WEBVIEW_AUTOMATION", "true"); // 2.x
|
||||
cmd.arg(format!("--port={}", args.native_port));
|
||||
cmd.arg(format!("--host={}", args.native_host));
|
||||
cmd
|
||||
|
Loading…
Reference in New Issue
Block a user