同步开发窗口调试门禁
让 Native shell 检查匹配 game-chat 分流后的受保护开发窗口调用 保持 open_developer_window 函数与调用点均为编译期 debug-only 验证全部 Native shell 静态架构断言通过
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user