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
-
初始化
此项目以
vite
+react-ts
为例(使用vite
是为了配合 vite-plugin-rsw 插件,可以无缝集成 webAssembly)。如需在老项目中添加 tauri 支持,请参考文档 Add Tauri to Existing Project项目结构
启动项目
有两种启动方式:
1. 启动 web 项目
2. 启动 tauri 项目
第一次启动项目时,tauri 会根据
src-tauri/Cargo.toml
去下载相关依赖(导致第一次启动比较慢),第二次启动会快很多。构建应用
Tauri Bundler 是一个 Rust 工具,用于编译二进制文件、打包资产并准备最终捆绑包。 它会检测你当前的操作系统并相应地构建一个包。目前支持:
如果未修改
src-tauri/tauri.conf.json
中的identifier
直接 build 会报以下错误。想要正确构建,只需修改为自己特有的标识符即可,如com.myapp.dev
。构建完成后,在src-tauri/target/release/bundle/{platform}/{app}
下就可以找到应用程序安装包。了解更多不同平台打包注意事项:Tauri Building
检查信息
检查 Tauri 信息以确保一切设置正确,在对问题进行分类时,此信息可能很有用。
Beta Was this translation helpful? Give feedback.
All reactions