docs: 补本机实测记录(探针数据 + 未覆盖项)

This commit is contained in:
qiqi committed 2026-11-16 18:56:15 +08:00
1 parent 883cb11ba4
commit 8a5d846617
1 file changed
+20
+20
View File
@@ -77,3 +77,23 @@ Windows 未签名:SmartScreen 提示,仅影响首次运行体验。
`plugins/index.json` 里的 `integrity` 一致(已校验)。
升级插件时:换掉 `plugins/runtime/` 里的文件 + 同步 `plugins/index.json` 即可,代码不用动。
## 七、本机实测记录(2026-11-16,macOS arm64)
构建产物:`image-workbench.app` 16.1 MB,已在 macOS 启动并渲染出完整界面。
在打包产物里注入一次性探针(用完即删,未进最终包)读到的运行时事实:
| 检查项 | 实测值 | 含义 |
|---|---|---|
| 页面 origin | `tauri://localhost` | 与网页版 `https://` 不同,所以 `/api/*` 这类同源后端全部不存在 |
| `window.__TAURI__` | 存在,keys 含 app/core/event/window… | withGlobalTauri 生效 |
| `dialog` / `fs` / `http` | true / true / true | 三个插件的前端 API 都挂上了 ⇒ 另存为链路可用 |
| `__TAURI_INTERNALS__.invoke` | true | IPC 通道正常(CSP 没拦) |
| `isSecureContext` | true | crypto.subtle、clipboard 这类安全上下文 API 不会降级 |
| `/plugins/index.json` | HTTP 200,1283 B | 插件静态化成功,桌面端有插件清单 |
| 插件 SRI 加载实测 | `blank-canvas` 加载 OK、已注册 yes | 用 `integrity` + `crossOrigin` 的真实注入方式验证通过 |
未能在本机自动验证的一项:**点「保存图片」弹系统另存为**。原因是要点开画布里的输出节点才能触发,
属于 GUI 交互,自动化会打断你当前桌面。这段逻辑本身已具备(三个 API 都在),请手工点一次确认。