1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

fix: tauri updater

This commit is contained in:
lencx 2023-01-04 21:44:23 +08:00
parent 65bb811f15
commit 3dd49cd5d3
4 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,9 @@ jobs:
- name: Install app dependencies and build it
run: yarn && yarn build:fe
- name: Rewrite tauri.conf.json
run: yarn fix:conf
- name: fix tray icon
if: matrix.platform != 'macos-latest'
run: |

View File

@ -8,6 +8,7 @@
"build": "yarn tauri build",
"updater": "tr updater",
"release": "tr release --git",
"fix:conf": "tr override --json.tauri_updater_active=false",
"fix:tray": "tr override --json.tauri_systemTray_iconPath=\"icons/tray-icon-light.png\" --json.tauri_systemTray_iconAsTemplate=false",
"fix:tray:mac": "tr override --json.tauri_systemTray_iconPath=\"icons/tray-icon.png\" --json.tauri_systemTray_iconAsTemplate=true",
"download": "node ./scripts/download.js",

View File

@ -10,6 +10,7 @@ use std::{
};
use tauri::{utils::config::Config, Manager, AppHandle, Wry};
use tauri::updater::UpdateResponse;
pub fn chat_root() -> PathBuf {
tauri::api::path::home_dir().unwrap().join(".chatgpt")
}

View File

@ -67,7 +67,7 @@
"csp": null
},
"updater": {
"active": false,
"active": true,
"dialog": true,
"endpoints": [
"https://lencx.github.io/ChatGPT/install.json"