fix(cli): process spawn not working on Node.js for mobile commands, closes #6203 (#8949)

This commit is contained in:
Lucas Fernandes Nogueira 2024-02-22 15:14:55 -03:00 committed by GitHub
parent 84c783f6bc
commit e538ba586c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 5 deletions

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes android and iOS process spawning not working on Node.js.

View File

@ -200,6 +200,14 @@ Enables the primary_monitor command without any pre-configured scope.
Denies the primary_monitor command without any pre-configured scope.
## allow-reparent
Enables the reparent command without any pre-configured scope.
## deny-reparent
Denies the reparent command without any pre-configured scope.
## allow-request-user-attention
Enables the request_user_attention command without any pre-configured scope.

View File

@ -20,7 +20,7 @@ use crate::{
runtime::{
monitor::Monitor as RuntimeMonitor,
window::{DetachedWindow, PendingWindow, WindowBuilder as _},
ProgressBarStatus, RuntimeHandle, WindowDispatch,
RuntimeHandle, WindowDispatch,
},
sealed::ManagerBase,
sealed::RuntimeOrDispatch,
@ -1939,7 +1939,7 @@ tauri::Builder::default()
#[derive(serde::Deserialize)]
pub struct ProgressBarState {
/// The progress bar status.
pub status: Option<ProgressBarStatus>,
pub status: Option<crate::runtime::ProgressBarStatus>,
/// The progress bar progress. This can be a value ranging from `0` to `100`
pub progress: Option<u64>,
}

View File

@ -459,9 +459,9 @@ dependencies = [
[[package]]
name = "cargo-mobile2"
version = "0.10.0"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2324a8dabdfe7ecbc0ec64686fbaf0121ebdfafb2848c15ac49301aa6a85a535"
checksum = "8c09fe71e8a0ae116ffb0d5a4bf60ff3b9cd0ad4503753f50c0bd03dede79322"
dependencies = [
"colored",
"core-foundation",
@ -481,6 +481,7 @@ dependencies = [
"once-cell-regex",
"openssl",
"os_info",
"os_pipe",
"path_abs",
"serde",
"serde_json",

View File

@ -39,7 +39,7 @@ name = "cargo-tauri"
path = "src/main.rs"
[dependencies]
cargo-mobile2 = { version = "0.10", default-features = false }
cargo-mobile2 = { version = "0.10.1", default-features = false }
jsonrpsee = { version = "0.20", features = [ "server" ] }
jsonrpsee-core = "0.20"
jsonrpsee-client-transport = { version = "0.20", features = [ "ws" ] }

View File

@ -190,6 +190,8 @@ pub fn gen(
&dest.join("project.yml").to_string_lossy(),
],
)
.stdout_file(os_pipe::dup_stdout().unwrap())
.stderr_file(os_pipe::dup_stderr().unwrap())
.run()
.with_context(|| "failed to run `xcodegen`")?;
@ -201,6 +203,8 @@ pub fn gen(
&format!("--project-directory={}", dest.display()),
],
)
.stdout_file(os_pipe::dup_stdout().unwrap())
.stderr_file(os_pipe::dup_stderr().unwrap())
.run()
.with_context(|| "failed to run `pod install`")?;
}