diff --git a/package.json b/package.json index f310bd0..dbff03a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "iccery", "private": true, - "version": "0.1.5", + "version": "0.1.6", "type": "module", "scripts": { "tauri": "tauri" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index cfd8285..635b97a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iccery" -version = "0.1.5" +version = "0.1.6" description = "A Tauri App" authors = ["you"] edition = "2021" diff --git a/src-tauri/src/process_manager.rs b/src-tauri/src/process_manager.rs index eb8d715..72f823f 100644 --- a/src-tauri/src/process_manager.rs +++ b/src-tauri/src/process_manager.rs @@ -5,6 +5,9 @@ use tokio::process::{Child, Command}; use tokio::sync::Mutex; use tauri::AppHandle; +#[cfg(windows)] +use std::os::windows::process::CommandExt; + use crate::events::{emit_error, emit_stderr, emit_stdout}; use std::sync::Arc; @@ -30,6 +33,12 @@ impl ProcessManager { command.stderr(Stdio::piped()); command.stdin(Stdio::piped()); + #[cfg(windows)] + { + const CREATE_NO_WINDOW: u32 = 0x08000000; + command.creation_flags(CREATE_NO_WINDOW); + } + match command.spawn() { Ok(mut child) => { let stdout = child.stdout.take().expect("Failed to open stdout"); diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 80cebcc..57375f3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "ICCery", - "version": "0.1.5", + "version": "0.1.6", "identifier": "com.gronod.iccery", "build": { "frontendDist": "../src"