新增文件:
- capabilities/default.json: Tauri v2 权限配置文件
权限配置:
- core🪟* - 窗口控制权限
- core:webview:* - Webview 权限
- shell:* - Shell 命令权限
- dialog:* - 文件对话框权限(包含 allow-open)
- fs:* - 文件系统权限
修复问题:
- 模型文件选择对话框无法打开
- Tauri v2 默认无权限,需要通过 capabilities 配置
构建结果:
- Linux GUI: dist/impress-asr-linux-x64-20260521_202605.tar.gz (4.8MB)
- 文件对话框现在可以正常打开
|
||
|---|---|---|
| .. | ||
| acl-manifests.json | ||
| capabilities.json | ||
| desktop-schema.json | ||
| linux-schema.json | ||
| windows-schema.json | ||