diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 790b5ebf0a708a44f3c776b8c0f428fca384981f..5df4a0ac375923e4b20c0f1db360c648bbc59bbe 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 8a657d6bb1eb20133bfd50ead4436627dbf77f14..debc64cddf975dc2bb05ccf3581d850d95a920c4 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