liuyuqi-cnb 1 week ago
parent
commit
6bed542211
1 changed files with 11 additions and 3 deletions
  1. 11 3
      README.md

+ 11 - 3
README.md

@@ -20,15 +20,23 @@ cargo create-tauri-app
 
 
 ```
 ```
 # 创建项目:
 # 创建项目:
-npx create-tauri-app
+npm create tauri-app@latest
 
 
 npm run dev
 npm run dev
+npm run tauri dev  # 启动开发环境
 npm run tauri build
 npm run tauri build
-```
 
 
-打包一个网站:
 
 
+```
 
 
+前端项目打包成桌面应用:
+```
+npm install -D @tauri-apps/cli@latest
+npx tauri init # 初始化项目,创建 src-tauri/ 目录
+
+npm run build # 打包前端项目
+npm run tauri build # 打包桌面应用
+```
 
 
 ## Pake
 ## Pake