You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
tauri.conf.json
是由tauri init
命令生成的文件,该文件位于 Tauri 应用程序源目录src-tauri
中。可以通过修改它来自定义 Tauri 应用程序。此文仅列举部分常用字段,更多请查看 Tauri Configuration。特定平台
除了
tauri.conf.json
外,Tauri 还可以从tauri.linux.conf.json
、tauri.windows.conf.json
、tauri.macos.conf.json
中读取特定于平台的配置,并将其与tauri.conf.json
主配置合并。配置结构
示例配置:
tauri.conf.json
由以下部分组成:package
version
字段的package.json
文件的路径tauri
fullScreenEnabled
设置为true
PatternKind
应用程序模式,可以是以下任何一种类型:
WindowConfig
macOSPrivateApi
(警告:使用私有 API 会阻止应用程序被接受)WindowUrl
要在Tauri Web 视图窗口中打开的 URL,可以是以下任何一种类型:
格式 uri
- 外部 URL应用程序 URL 的路径部分
- 例如:tauri://localhost/users/lencx
的部分路径users/lencx
Theme
系统主题,可以是以下任一值:
Beta Was this translation helpful? Give feedback.
All reactions