From b2cc21646cf989a0acab529feaeaa18a12ac04a1 Mon Sep 17 00:00:00 2001 From: menghao Date: Fri, 31 Jul 2026 10:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=BC=80=E5=8F=91=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E8=AF=95=E9=97=A8=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 让 Native shell 检查匹配 game-chat 分流后的受保护开发窗口调用 保持 open_developer_window 函数与调用点均为编译期 debug-only 验证全部 Native shell 静态架构断言通过 --- scripts/check-native-shells.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-native-shells.mjs b/scripts/check-native-shells.mjs index 2e4fd3631..b128630f1 100644 --- a/scripts/check-native-shells.mjs +++ b/scripts/check-native-shells.mjs @@ -2485,7 +2485,7 @@ function assertAiGameCreatorShellUserDevBoundary() { } for (const snippet of [ '#[cfg(all(debug_assertions, not(test)))]\npub(crate) fn open_developer_window(', - '#[cfg(all(debug_assertions, not(test)))]\n open_developer_window(app.handle())?;', + '#[cfg(all(debug_assertions, not(test)))]\n if game_chat_launch.is_none() {\n open_developer_window(app.handle())?;\n }', ]) { if (!aiGameCreatorShellTauriSource.includes(snippet)) { throw new Error(