diff --git a/crates/clash-verge-i18n/locales/ar.yml b/crates/clash-verge-i18n/locales/ar.yml
index 523f49c55..4476f4da3 100644
--- a/crates/clash-verge-i18n/locales/ar.yml
+++ b/crates/clash-verge-i18n/locales/ar.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: على وشك الخروج
body: Clash Verge على وشك الخروج.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: يتطلب تثبيت خدمة Clash Verge صلاحيات المسؤول.
adminUninstallPrompt: يتطلب إلغاء تثبيت خدمة Clash Verge صلاحيات المسؤول.
diff --git a/crates/clash-verge-i18n/locales/de.yml b/crates/clash-verge-i18n/locales/de.yml
index d8accd74b..580e7ddd7 100644
--- a/crates/clash-verge-i18n/locales/de.yml
+++ b/crates/clash-verge-i18n/locales/de.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Beenden steht bevor
body: Clash Verge wird gleich beendet.
- updateReady:
- title: Clash-Verge-Update
- body: Eine neue Version (v{version}) wurde heruntergeladen und kann installiert werden.
- installNow: Jetzt installieren
- later: Später
service:
adminInstallPrompt: Für die Installation des Clash-Verge-Dienstes sind Administratorrechte erforderlich.
adminUninstallPrompt: Für die Deinstallation des Clash-Verge-Dienstes sind Administratorrechte erforderlich.
diff --git a/crates/clash-verge-i18n/locales/en.yml b/crates/clash-verge-i18n/locales/en.yml
index d1b144b94..ecad0ddf3 100644
--- a/crates/clash-verge-i18n/locales/en.yml
+++ b/crates/clash-verge-i18n/locales/en.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: About to Exit
body: Clash Verge is about to exit.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Installing the Clash Verge service requires administrator privileges.
adminUninstallPrompt: Uninstalling the Clash Verge service requires administrator privileges.
diff --git a/crates/clash-verge-i18n/locales/es.yml b/crates/clash-verge-i18n/locales/es.yml
index 119d630d7..76ecd7e96 100644
--- a/crates/clash-verge-i18n/locales/es.yml
+++ b/crates/clash-verge-i18n/locales/es.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: A punto de salir
body: Clash Verge está a punto de salir.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Instalar el servicio de Clash Verge requiere privilegios de administrador.
adminUninstallPrompt: Desinstalar el servicio de Clash Verge requiere privilegios de administrador.
diff --git a/crates/clash-verge-i18n/locales/fa.yml b/crates/clash-verge-i18n/locales/fa.yml
index e5270cebd..b21404682 100644
--- a/crates/clash-verge-i18n/locales/fa.yml
+++ b/crates/clash-verge-i18n/locales/fa.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: در آستانه خروج
body: Clash Verge در آستانه خروج است.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: نصب سرویس Clash Verge به دسترسی مدیر نیاز دارد.
adminUninstallPrompt: حذف سرویس Clash Verge به دسترسی مدیر نیاز دارد.
diff --git a/crates/clash-verge-i18n/locales/id.yml b/crates/clash-verge-i18n/locales/id.yml
index 316b3e523..cf2750a26 100644
--- a/crates/clash-verge-i18n/locales/id.yml
+++ b/crates/clash-verge-i18n/locales/id.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Akan Keluar
body: Clash Verge akan keluar.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Menginstal layanan Clash Verge memerlukan hak administrator.
adminUninstallPrompt: Menghapus instalasi layanan Clash Verge memerlukan hak administrator.
diff --git a/crates/clash-verge-i18n/locales/jp.yml b/crates/clash-verge-i18n/locales/jp.yml
index 9817405e6..2ca38403c 100644
--- a/crates/clash-verge-i18n/locales/jp.yml
+++ b/crates/clash-verge-i18n/locales/jp.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: 終了間近
body: Clash Verge はまもなく終了します。
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Clash Verge サービスのインストールには管理者権限が必要です。
adminUninstallPrompt: Clash Verge サービスのアンインストールには管理者権限が必要です。
diff --git a/crates/clash-verge-i18n/locales/ko.yml b/crates/clash-verge-i18n/locales/ko.yml
index 241d0d327..900d7d5ad 100644
--- a/crates/clash-verge-i18n/locales/ko.yml
+++ b/crates/clash-verge-i18n/locales/ko.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: 곧 종료
body: Clash Verge가 곧 종료됩니다.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Clash Verge 서비스 설치에는 관리자 권한이 필요합니다.
adminUninstallPrompt: Clash Verge 서비스 제거에는 관리자 권한이 필요합니다.
diff --git a/crates/clash-verge-i18n/locales/pt.yml b/crates/clash-verge-i18n/locales/pt.yml
index 2373529ee..8daacfafd 100644
--- a/crates/clash-verge-i18n/locales/pt.yml
+++ b/crates/clash-verge-i18n/locales/pt.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Prestes a sair
body: O Clash Verge está prestes a sair.
- updateReady:
- title: Atualização do Clash Verge
- body: Uma nova versão (v{version}) foi baixada e está pronta para instalar.
- installNow: Instalar agora
- later: Depois
service:
adminInstallPrompt: A instalação do serviço do Clash Verge requer privilégios de administrador.
adminUninstallPrompt: A desinstalação do serviço do Clash Verge requer privilégios de administrador.
diff --git a/crates/clash-verge-i18n/locales/ru.yml b/crates/clash-verge-i18n/locales/ru.yml
index 985b9d1e6..38b476763 100644
--- a/crates/clash-verge-i18n/locales/ru.yml
+++ b/crates/clash-verge-i18n/locales/ru.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Скорый выход
body: Clash Verge скоро завершит работу.
- updateReady:
- title: Обновление Clash Verge
- body: Новая версия (v{version}) скачана и готова к установке.
- installNow: Установить сейчас
- later: Позже
service:
adminInstallPrompt: Для установки службы Clash Verge требуются права администратора.
adminUninstallPrompt: Для удаления службы Clash Verge требуются права администратора.
diff --git a/crates/clash-verge-i18n/locales/tr.yml b/crates/clash-verge-i18n/locales/tr.yml
index 0d0f0c945..191267edc 100644
--- a/crates/clash-verge-i18n/locales/tr.yml
+++ b/crates/clash-verge-i18n/locales/tr.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Çıkış Yapılmak Üzere
body: Clash Verge kapanmak üzere.
- updateReady:
- title: Clash Verge Güncellemesi
- body: Yeni bir sürüm (v{version}) indirildi ve kurulmaya hazır.
- installNow: Şimdi Kur
- later: Daha Sonra
service:
adminInstallPrompt: Clash Verge hizmetini kurmak için yönetici ayrıcalıkları gerekir.
adminUninstallPrompt: Clash Verge hizmetini kaldırmak için yönetici ayrıcalıkları gerekir.
diff --git a/crates/clash-verge-i18n/locales/tt.yml b/crates/clash-verge-i18n/locales/tt.yml
index c136061ae..1a9e4580b 100644
--- a/crates/clash-verge-i18n/locales/tt.yml
+++ b/crates/clash-verge-i18n/locales/tt.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: Чыгар алдыннан
body: Clash Verge чыгарга җыена.
- updateReady:
- title: Clash Verge Update
- body: A new version (v{version}) has been downloaded and is ready to install.
- installNow: Install Now
- later: Later
service:
adminInstallPrompt: Clash Verge хезмәтен урнаштыру өчен администратор хокуклары кирәк.
adminUninstallPrompt: Clash Verge хезмәтен бетерү өчен администратор хокуклары кирәк.
diff --git a/crates/clash-verge-i18n/locales/zh.yml b/crates/clash-verge-i18n/locales/zh.yml
index d87c1e2f0..020d8640d 100644
--- a/crates/clash-verge-i18n/locales/zh.yml
+++ b/crates/clash-verge-i18n/locales/zh.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: 即将退出
body: Clash Verge 即将退出。
- updateReady:
- title: Clash Verge 更新
- body: 新版本 (v{version}) 已下载完成,是否立即安装?
- installNow: 立即安装
- later: 稍后
service:
adminInstallPrompt: 安装 Clash Verge 服务需要管理员权限
adminUninstallPrompt: 卸载 Clash Verge 服务需要管理员权限
diff --git a/crates/clash-verge-i18n/locales/zhtw.yml b/crates/clash-verge-i18n/locales/zhtw.yml
index b6baa3adb..9f7ac03b8 100644
--- a/crates/clash-verge-i18n/locales/zhtw.yml
+++ b/crates/clash-verge-i18n/locales/zhtw.yml
@@ -29,11 +29,6 @@ notifications:
appQuit:
title: 即將退出
body: Clash Verge 即將退出。
- updateReady:
- title: Clash Verge 更新
- body: 新版本(v{version})已下載完成,是否立即安裝?
- installNow: 立即安裝
- later: 稍後
service:
adminInstallPrompt: 安裝 Clash Verge 服務需要管理員權限
adminUninstallPrompt: 解除安裝 Clash Verge 服務需要管理員權限
diff --git a/src-tauri/src/core/updater.rs b/src-tauri/src/core/updater.rs
index d6e902772..3d4acec80 100644
--- a/src-tauri/src/core/updater.rs
+++ b/src-tauri/src/core/updater.rs
@@ -1,21 +1,20 @@
use crate::{config::Config, singleton, utils::dirs};
use anyhow::{Context as _, Result};
-use chrono::Utc;
use clash_verge_logging::{Type, logging};
use parking_lot::Mutex;
use serde::{Deserialize, Serialize};
use std::{
path::PathBuf,
- sync::atomic::{AtomicBool, AtomicU64, Ordering},
+ sync::atomic::{AtomicU64, Ordering},
time::Duration,
};
use tauri_plugin_updater::{Update, UpdaterExt as _};
use tokio_util::sync::CancellationToken;
pub struct SilentUpdater {
- update_ready: AtomicBool,
manual_cancel: Mutex