From d9e3d84c0cd29eb631e3bfa2b343286c301f9e42 Mon Sep 17 00:00:00 2001 From: qiqi Date: Mon, 23 Nov 2026 00:53:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(windows):=20=E5=86=85=E5=AD=98=E6=8E=A2?= =?UTF-8?q?=E6=B5=8B=20PowerShell=20=E5=8A=A0=20CREATE=5FNO=5FWINDOW?= =?UTF-8?q?=EF=BC=8C=E6=B6=88=E9=99=A4=E6=8E=A7=E5=88=B6=E5=8F=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +++++ package.json | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/lib.rs | 3 +++ src-tauri/tauri.conf.json | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3361f3d..6aed4e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,11 @@ > 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。 > 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。 +## v3.26.40(2026-11-23)Windows:修复 PowerShell 弹窗 + +- Windows 状态栏内存探测改用 CREATE_NO_WINDOW 启动 PowerShell,不再每 4 秒弹出控制台窗口。 +- macOS 行为不变(Unix 分支仍用 ps)。 + ## v3.26.39(2026-11-22)修正插件插入落点与封面插入 - promptlib 1.6.18:拖拽落点按节点宽高居中到鼠标;详情「插入模板节点/插入画布/插入图片」落到画布可视中心;拖拽期间禁用文本选择。 diff --git a/package.json b/package.json index 1af209a..cdebee6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "image-workbench-web", "private": true, - "version": "3.26.39", + "version": "3.26.40", "description": "Browser-based node canvas image workbench", "scripts": { "build": "node scripts/build.js && node scripts/copy-plugins.js", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 8a2e2c1..e424da5 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.39" +version = "3.26.40" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 2c042ff..25ed49d 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -172,8 +172,11 @@ fn app_memory_mb() -> u64 { #[cfg(windows)] { let script = format!("(Get-Process -Id {}).WorkingSet64", pid); + use std::os::windows::process::CommandExt; + const CREATE_NO_WINDOW: u32 = 0x0800_0000; let out = std::process::Command::new("powershell") .args(["-NoProfile", "-NonInteractive", "-Command", &script]) + .creation_flags(CREATE_NO_WINDOW) .output(); if let Ok(o) = out { if o.status.success() { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 76f62fb..5db8c2c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "image-workbench", - "version": "3.26.39", + "version": "3.26.40", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist",