mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-08-15 03:13:33 +00:00
fix(tauri): avoid non-Windows spawn warning
This commit is contained in:
parent
3a15b311a8
commit
8245f474b8
1 changed files with 5 additions and 4 deletions
|
|
@ -27,13 +27,14 @@ fn log_line(message: &str) {
|
|||
println!("[tauri-cli] {message}");
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
fn configure_spawn(command: &mut Command) {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
command.creation_flags(CREATE_NO_WINDOW);
|
||||
}
|
||||
command.creation_flags(CREATE_NO_WINDOW);
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
fn configure_spawn(_command: &mut Command) {}
|
||||
|
||||
fn workspace_root() -> Option<PathBuf> {
|
||||
std::env::current_dir().ok().and_then(|mut dir| {
|
||||
for _ in 0..3 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue