Browse Source

Update README.md to include installation instructions and usage examples for creating and building Tauri apps

fish 1 month ago
parent
commit
53cac9a3b4
2 changed files with 56 additions and 0 deletions
  1. 18 0
      README.md
  2. 38 0
      tauri.conf.json

+ 18 - 0
README.md

@@ -5,6 +5,7 @@
 
 ## Develop
 
+安装 nodejs, yarn, Rust, cargo
 ```
 cp tauri/.cargo/config ~/.cango
 
@@ -14,6 +15,21 @@ cargo create-tauri-app
 
 ```
 
+## Usage
+
+
+```
+# 创建项目:
+npx create-tauri-app
+
+npm run dev
+npm run tauri build
+```
+
+打包一个网站:
+
+
+
 ## Pake
 
 基于tauri 快速构建桌面应用,只需输入网址即可:
@@ -59,6 +75,8 @@ docker run -it --rm \
 
 ## Reference
 
+ - [](https://tauri.app)
+
 下面是tauri 打包跨平台应用:
 
 https://gitee.com/qiaoshengda/es-client

+ 38 - 0
tauri.conf.json

@@ -0,0 +1,38 @@
+{
+  "$schema": "https://schema.tauri.app/config/2.0.0-rc",
+  "productName": "tauri-qwen",
+  "version": "0.1.0",
+  "identifier": "com.litongjava.tauri.qwen",
+  "build": {
+    "frontendDist": "dist",
+    "devUrl": "https://chat.qwenlm.ai/"
+  },
+  "app": {
+    "windows": [
+      {
+        "title": "Tauri qwen",
+        "fullscreen": false,
+        "resizable": true,
+        "height": 1000,
+        "width": 1500,
+        "url": "https://chat.qwenlm.ai/",
+        "x": 100,
+        "y": 0
+      }
+    ],
+    "security": {
+      "csp": null
+    }
+  },
+  "bundle": {
+    "active": true,
+    "targets": "all",
+    "icon": [
+      "icons/32x32.png",
+      "icons/128x128.png",
+      "icons/128x128@2x.png",
+      "icons/icon.icns",
+      "icons/icon.ico"
+    ]
+  }
+}