Browse Source

fix: tauri auto updater url

Yidadaa 1 year ago
parent
commit
1e8d4763bb
2 changed files with 4 additions and 4 deletions
  1. 1 1
      package.json
  2. 3 3
      src-tauri/tauri.conf.json

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "license": "mit",
   "scripts": {
     "dev": "next dev",
-    "build": "next build",
+    "build": "cross-env BUILD_MODE=standalone next build",
     "start": "next start",
     "lint": "next lint",
     "export": "cross-env BUILD_MODE=export BUILD_APP=1 yarn build",

+ 3 - 3
src-tauri/tauri.conf.json

@@ -8,8 +8,8 @@
     "withGlobalTauri": true
   },
   "package": {
-    "productName": "chatgpt-next-web",
-    "version": "2.8.5"
+    "productName": "ChatGPT Next Web",
+    "version": "2.8.6"
   },
   "tauri": {
     "allowlist": {
@@ -85,7 +85,7 @@
     "updater": {
       "active": true,
       "endpoints": [
-        "https://github.com/Yidadaa/ChatGPT-Next-Web/releases/download/{{current_version}}/latest.json"
+        "https://github.com/Yidadaa/ChatGPT-Next-Web/releases/latest/download/latest.json"
       ],
       "dialog": false,
       "windows": {