chore(updater): update version to 2.0.0-beta.3 and fix update error handling

* Updated version number and download URLs for all platforms.
* Enhanced error handling in `checkWoxVersion` to include specific update errors.
* Added new language strings for auto-update status in multiple languages.
* Refactored UI color handling in the about view for better theme support.
This commit is contained in:
qianlifeng 2025-06-23 21:48:57 +08:00
parent a9ad3b0bd3
commit 6f801d734b
No known key found for this signature in database
8 changed files with 22 additions and 25 deletions

View File

@ -1,12 +1,12 @@
{
"Version": "2.0.0-beta.2",
"MacArm64DownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.2/wox-mac-arm64.dmg",
"MacArm64Checksum": "8e7adcdcdcd907178e6694c1f4de95fa",
"MacAmd64DownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.2/wox-mac-amd64.dmg",
"MacAmd64Checksum": "d6087212bcc1117a5e5b120bb4abad6d",
"WindowsDownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.2/wox-windows-amd64.exe",
"WindowsChecksum": "866c8796315567fd270f7e55af4aff92",
"LinuxDownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.2/wox-linux-amd64",
"LinuxChecksum": "881e387d92dc6620a97ce0617f8be96b",
"ReleaseNotes": "1. Added Chat plugin, you can now chat with AI directly through this plugin, supporting MCP. \n 2. The settings interface now follows the theme color. \n 3. Added double modifiers hotkey as a shortcut, E.g. double-click ctrl key."
"Version": "2.0.0-beta.3",
"MacArm64DownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.3/wox-mac-arm64.dmg",
"MacArm64Checksum": "0ded8c099b6c9fa4d43c9b0ab5d48b67",
"MacAmd64DownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.3/wox-mac-amd64.dmg",
"MacAmd64Checksum": "b47c0b2c3cd3ad2d3f6cb87ee199d44c",
"WindowsDownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.3/wox-windows-amd64.exe",
"WindowsChecksum": "6e6455b23ab7f43e03be4e9771afa2ca",
"LinuxDownloadUrl": "https://github.com/Wox-launcher/Wox/releases/download/v2.0.0-beta.3/wox-linux-amd64",
"LinuxChecksum": "4b972f060ea2cebe2ba85320a3dab983",
"ReleaseNotes": "1. Fix issue where Windows sometimes cannot gain focus #4198. \n 2. [Chat plugin], support multiple tool calls executed simultaneously in a single request. \n 3. [Chat plugin], support custom agents. \n 4. Support ScriptPlugin"
}

View File

@ -48,7 +48,7 @@ func RunDoctorChecks(ctx context.Context) []DoctorCheckResult {
func checkWoxVersion(ctx context.Context) DoctorCheckResult {
updateInfo := updater.GetUpdateInfo()
if updateInfo.Status == updater.UpdateStatusError {
if updateInfo.Status == updater.UpdateStatusError || updateInfo.UpdateError != nil {
return DoctorCheckResult{
Name: "i18n:plugin_doctor_version",
Type: DoctorCheckUpdate,
@ -103,7 +103,7 @@ func checkWoxVersion(ctx context.Context) DoctorCheckResult {
Name: "i18n:plugin_doctor_version",
Type: DoctorCheckUpdate,
Passed: true,
Description: fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version_latest"), updateInfo.LatestVersion),
Description: fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version_latest"), updateInfo.CurrentVersion),
ActionName: "",
Action: func(ctx context.Context) {
},
@ -157,7 +157,7 @@ func checkWoxVersion(ctx context.Context) DoctorCheckResult {
</body>
</html>
`, i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version"),
fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version_latest"), updateInfo.LatestVersion)),
fmt.Sprintf(i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version_latest"), updateInfo.CurrentVersion)),
PreviewProperties: map[string]string{},
ScrollPosition: WoxPreviewScrollPositionBottom,
},

View File

@ -227,6 +227,7 @@
"plugin_doctor_version_update_notes": "Update Notes",
"plugin_doctor_version_update_error": "Update Check Failed",
"plugin_doctor_version_no_release_notes": "No release notes available for this update.",
"plugin_doctor_version_auto_update_disabled": "Auto update is disabled",
"plugin_doctor_accessibility": "Accessibility",
"plugin_doctor_accessibility_required": "You need to grant Wox Accessibility permission to use this plugin",
"plugin_doctor_accessibility_open_settings": "Open Accessibility Settings",

View File

@ -225,6 +225,7 @@
"plugin_doctor_version_update_notes": "Notas da Atualização",
"plugin_doctor_version_update_error": "Falha na verificação de atualização",
"plugin_doctor_version_no_release_notes": "Não há notas de lançamento disponíveis para esta atualização.",
"plugin_doctor_version_auto_update_disabled": "Atualização automática desativada",
"plugin_doctor_accessibility": "Acessibilidade",
"plugin_doctor_accessibility_required": "Você precisa conceder permissão de Acessibilidade ao Wox para usar este plugin",
"plugin_doctor_accessibility_open_settings": "Abrir configurações de acessibilidade",

View File

@ -225,6 +225,7 @@
"plugin_doctor_version_update_notes": "Примечания к обновлению",
"plugin_doctor_version_update_error": "Ошибка проверки обновления",
"plugin_doctor_version_no_release_notes": "Для этого обновления нет доступных примечаний к выпуску.",
"plugin_doctor_version_auto_update_disabled": "Автообновление отключено",
"plugin_doctor_accessibility": "Доступность",
"plugin_doctor_accessibility_required": "Вам нужно предоставить Wox разрешение на доступность для использования этого плагина",
"plugin_doctor_accessibility_open_settings": "Открыть настройки доступности",

View File

@ -224,6 +224,7 @@
"plugin_doctor_version_update_notes": "更新说明",
"plugin_doctor_version_update_error": "更新检查失败",
"plugin_doctor_version_no_release_notes": "此更新没有提供更新说明。",
"plugin_doctor_version_auto_update_disabled": "自动更新已禁用",
"plugin_doctor_accessibility": "辅助功能",
"plugin_doctor_accessibility_required": "您需要授予 Wox 辅助功能权限才能使用此插件",
"plugin_doctor_accessibility_open_settings": "打开辅助功能设置",

View File

@ -11,6 +11,7 @@ import (
"os"
"path/filepath"
"time"
"wox/i18n"
"wox/setting"
"wox/util"
@ -87,7 +88,7 @@ func CheckForUpdates(ctx context.Context) {
currentUpdateInfo.Status = UpdateStatusNone
currentUpdateInfo.HasUpdate = false
currentUpdateInfo.DownloadedPath = ""
currentUpdateInfo.UpdateError = nil
currentUpdateInfo.UpdateError = errors.New(i18n.GetI18nManager().TranslateWox(ctx, "plugin_doctor_version_auto_update_disabled"))
return
}

View File

@ -1,10 +1,12 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:from_css_color/from_css_color.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:wox/components/wox_image_view.dart';
import 'package:wox/entity/wox_image.dart';
import 'package:wox/modules/setting/views/wox_setting_base.dart';
import 'package:wox/utils/colors.dart';
import 'package:wox/utils/consts.dart';
import 'package:wox/utils/wox_theme_util.dart';
class WoxSettingAboutView extends WoxSettingBaseView {
const WoxSettingAboutView({super.key});
@ -27,16 +29,6 @@ class WoxSettingAboutView extends WoxSettingBaseView {
height: 100,
),
const SizedBox(height: 30),
// App name
Text(
'Wox',
style: TextStyle(
fontSize: 36,
fontWeight: FontWeight.bold,
color: getThemeTextColor(),
),
),
const SizedBox(height: 8),
// Version
Container(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
@ -47,7 +39,7 @@ class WoxSettingAboutView extends WoxSettingBaseView {
child: Text(
controller.woxVersion.value,
style: TextStyle(
color: getThemeTextColor(),
color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveFontColor),
fontWeight: FontWeight.w500,
),
),