From 08e4d72758698e0b41ad970e6ec1903cd739d85d Mon Sep 17 00:00:00 2001 From: GyDi <segydi@foxmail.com> Date: Mon, 10 Jan 2022 02:15:38 +0800 Subject: [PATCH] feat: use tauri updater --- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 790b5eb..5df4a0a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -20,7 +20,7 @@ serde_yaml = "0.8" serde = { version = "1.0", features = ["derive"] } # tauri = { version = "1.0.0-beta.8", features = ["api-all", "system-tray"] } # tauri = { git = "https://github.com/tauri-apps/tauri", rev = "5e0d59ec", features = ["api-all", "system-tray"] } -tauri = { git = "https://github.com/tauri-apps/tauri", branch = "next", features = ["api-all", "system-tray"] } +tauri = { git = "https://github.com/tauri-apps/tauri", branch = "next", features = ["api-all", "system-tray", "updater"] } tauri-plugin-shadows = { git = "https://github.com/tauri-apps/tauri-plugin-shadows", features = ["tauri-impl"] } reqwest = { version = "0.11", features = ["json"] } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8a657d6..debc64c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -50,7 +50,11 @@ } }, "updater": { - "active": false + "active": true, + "endpoints": [ + "https://github.com/zzzgydi/clash-verge/releases/download/updater/update.json" + ], + "dialog": false }, "allowlist": { "all": true -- GitLab