mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-09 16:18:49 +03:00
fix(cli): adb reverse
failing in Node.js (#10466)
This commit is contained in:
parent
005e4a9649
commit
206914fe8d
6
.changes/fix-adb.md
Normal file
6
.changes/fix-adb.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:bug
|
||||
"@tauri-apps/cli": patch:bug
|
||||
---
|
||||
|
||||
Fixes running `adb reverse` in Node.js context.
|
@ -218,7 +218,11 @@ fn run_dev(
|
||||
.clone();
|
||||
if let Some(port) = dev_url.and_then(|url| url.port_or_known_default()) {
|
||||
let forward = format!("tcp:{port}");
|
||||
adb::adb(&env, ["reverse", &forward, &forward]).run()?;
|
||||
adb::adb(&env, ["reverse", &forward, &forward])
|
||||
.stdin_file(os_pipe::dup_stdin().unwrap())
|
||||
.stdout_file(os_pipe::dup_stdout().unwrap())
|
||||
.stderr_capture()
|
||||
.run()?;
|
||||
}
|
||||
|
||||
let open = options.open;
|
||||
|
Loading…
Reference in New Issue
Block a user