fix(process): suppress visible terminal window on Windows when running ArgyllCMS tools (v0.1.6) #47

Merged
gronod merged 1 commits from fix/issue-46-suppress-console-window-windows into development 2026-08-24 19:29:36 +01:00
4 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "iccery",
"private": true,
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"scripts": {
"tauri": "tauri"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "iccery"
version = "0.1.5"
version = "0.1.6"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
+9
View File
@@ -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");
+1 -1
View File
@@ -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"