锁定桌面壳启动宿主上下文

补全桌面主窗口 release 入口宿主上下文字段断言

增加桌面壳配置检查对主窗口宿主上下文测试的反查

同步原生壳方案文档和共享决策记录
This commit is contained in:
2026-06-20 20:43:03 +08:00
parent f7122282a3
commit a7358d8ab0
4 changed files with 17 additions and 0 deletions
@@ -2546,6 +2546,15 @@ const requiredRustHostSnippets = [
'.find(|window| window.label == DESKTOP_MAIN_WINDOW_LABEL)',
'tauri::Error::WindowNotFound',
'desktop_main_window_config(app)?',
'desktop_main_window_config_uses_labeled_main_window',
'path.starts_with("index.html?")',
'path.contains("clientRuntime=native_app")',
'path.contains("clientType=native_app")',
'path.contains("hostShell=tauri_desktop")',
'path.contains("hostPlatform=")',
'path.contains(&format!("hostVersion={}", env!("CARGO_PKG_VERSION")))',
'path.contains("bridgeVersion=")',
'path.contains("hostCapabilities=")',
'should_allow_desktop_webview_navigation',
'desktop_external_navigation_url',
'open_normalized_desktop_external_url',