mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01: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:
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
|
||||
|
||||
Reference in New Issue
Block a user