Skip to content

fix(desktop): prevent release console window - #69

Open
DTALEX66 wants to merge 1 commit into
mainfrom
fix/desktop-no-console
Open

fix(desktop): prevent release console window#69
DTALEX66 wants to merge 1 commit into
mainfrom
fix/desktop-no-console

Conversation

@DTALEX66

@DTALEX66 DTALEX66 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

修复 Windows 发布版启动时出现 CMD 控制台的问题。

根因:Tauri shell 的 main.rs 未声明 windows_subsystem = "windows",发布 EXE 被链接为 Console subsystem;关闭 CMD 会终止同一进程,导致工作台关闭。

变更:

  • release 构建链接为 Windows GUI subsystem;
  • debug 构建保留控制台,便于开发诊断。

验证:cargo fmt --all -- --check;cargo test --lib(14 passed);cargo build --release;PE 读取为 GUI。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant