fix(windows): 发布构建不再弹出控制台窗口

Windows 上入口默认 console 子系统,运行时自动创建控制台窗口。
按 debug_assertions 分流:release 用 windows 子系统(纯 GUI,无
控制台;eprintln/tracing 输出丢弃),debug 保留 console 子系统
(日志直接可见)。程序化验证:release 无 ConsoleWindowClass
窗口,debug 保留控制台连接。
This commit is contained in:
2026-10-13 00:31:35 +08:00
parent 82f26652a4
commit 61d8d6fa77
+4
View File
@@ -1,3 +1,7 @@
// 发布构建不创建控制台窗口(GUI 子系统);debug 构建保留控制台,
// 便于直接查看 eprintln / tracing 日志输出。
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use gpui_kit::component::TitleBar;
use gpui_kit::*;