同步开发窗口调试门禁
Project CI / Native shell tests (pull_request) Successful in 12m44s
Project CI / Repository checks (pull_request) Successful in 4m15s
Project CI / Backend tests (pull_request) Successful in 5m22s
Project CI / Frontend tests (pull_request) Successful in 5m34s

让 Native shell 检查匹配 game-chat 分流后的受保护开发窗口调用
保持 open_developer_window 函数与调用点均为编译期 debug-only
验证全部 Native shell 静态架构断言通过
This commit is contained in:
2026-07-31 10:17:54 +08:00
parent 3318be3da0
commit b2cc21646c
+1 -1
View File
@@ -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(