fix(windows): 内存探测 PowerShell 加 CREATE_NO_WINDOW,消除控制台弹窗

This commit is contained in:
qiqi committed 2026-11-23 00:53:43 +08:00
1 parent af3a9cdf8f
commit d9e3d84c0c
5 files changed
+11 -3

No files matched your search

+5
View File
@@ -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:拖拽落点按节点宽高居中到鼠标;详情「插入模板节点/插入画布/插入图片」落到画布可视中心;拖拽期间禁用文本选择。
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.39"
version = "3.26.40"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+3
View File
@@ -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() {
+1 -1
View File
@@ -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",