feat(update): 支持 latest 与 dev 更新通道切换

- 新增更新通道持久化与按通道检查 GitHub Release
- 关于页支持切换通道并隔离本地更新缓存状态
- 补充多语言文案、Wails 绑定与前后端测试覆盖
This commit is contained in:
Syngnat
2026-07-05 12:08:45 +08:00
parent 06c4222aff
commit e5baf9ead6
16 changed files with 740 additions and 61 deletions

View File

@@ -2426,9 +2426,11 @@
"app.about.download_progress.title_with_version": "Update {{version}} herunterladen",
"app.about.field.author": "Autor",
"app.about.field.community": "Community",
"app.about.field.update_channel": "Update-Kanal",
"app.about.field.update_status": "Updatestatus",
"app.about.field.version": "Version",
"app.about.message.check_failed_with_error": "Updateprüfung fehlgeschlagen: {{error}}",
"app.about.message.channel_switch_failed_with_error": "Wechsel des Update-Kanals fehlgeschlagen: {{error}}",
"app.about.message.download_completed": "Update-Download abgeschlossen",
"app.about.message.download_completed_with_path": "Update-Download abgeschlossen. Paketpfad: {{path}}",
"app.about.message.download_failed_with_error": "Update-Download fehlgeschlagen: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "Updatepaket ist bereit ({{version}}), Pfad: {{path}}",
"app.about.project_links": "Projektlinks",
"app.about.title": "Über GoNavi",
"app.about.update_channel.dev": "Dev-Kanal",
"app.about.update_channel.latest": "Latest-Kanal",
"app.about.update_status.check_failed": "Updateprüfung fehlgeschlagen: {{error}}",
"app.about.update_status.checking": "Suche nach Updates...",
"app.about.update_status.latest": "Sie verwenden die neueste Version ({{version}})",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "Installationsverzeichnis öffnen",
"app.update.backend.error.check_failed": "Updateprüfung fehlgeschlagen: {{detail}}",
"app.update.backend.error.check_http_status": "Updateprüfung fehlgeschlagen: HTTP {{status}}",
"app.update.backend.error.channel_invalid": "Ungültiger Update-Kanal: {{channel}}",
"app.update.backend.error.download_failed": "Updatedownload fehlgeschlagen: {{detail}}",
"app.update.backend.error.install_unsupported": "Updateinstallation wird auf dieser Plattform nicht unterstützt: {{platform}}",
"app.update.backend.error.latest_version_unparseable": "Neueste Versionsnummer konnte nicht gelesen werden",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "Updatepaket nicht gefunden: {{name}}",
"app.update.backend.message.app_directory_unavailable": "Auf das App-Verzeichnis kann nicht zugegriffen werden: {{path}}",
"app.update.backend.message.app_directory_unresolved_download": "Das aktuelle App-Verzeichnis kann nicht bestimmt werden, daher kann das Update nicht heruntergeladen werden",
"app.update.backend.message.channel_change_blocked_downloading": "Ein Updatepaket wird gerade heruntergeladen, daher kann der Update-Kanal momentan nicht gewechselt werden",
"app.update.backend.message.channel_change_failed": "Speichern des Update-Kanals fehlgeschlagen: {{detail}}",
"app.update.backend.message.channel_changed": "Update-Kanal gewechselt zu: {{channel}}",
"app.update.backend.message.check_first": "Prüfen Sie zuerst auf Updates",
"app.update.backend.message.checksum_failed": "Prüfsumme des Updatepakets ist fehlgeschlagen. Versuchen Sie es erneut.",
"app.update.backend.message.checksum_missing": "Prüfsumme des Updatepakets fehlt (SHA256SUMS)",

View File

@@ -2426,9 +2426,11 @@
"app.about.download_progress.title_with_version": "Download Update {{version}}",
"app.about.field.author": "Author",
"app.about.field.community": "Community",
"app.about.field.update_channel": "Update Channel",
"app.about.field.update_status": "Update Status",
"app.about.field.version": "Version",
"app.about.message.check_failed_with_error": "Update check failed: {{error}}",
"app.about.message.channel_switch_failed_with_error": "Failed to switch update channel: {{error}}",
"app.about.message.download_completed": "Update download completed",
"app.about.message.download_completed_with_path": "Update download completed. Package path: {{path}}",
"app.about.message.download_failed_with_error": "Update download failed: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "Update package is ready ({{version}}), path: {{path}}",
"app.about.project_links": "Project Links",
"app.about.title": "About GoNavi",
"app.about.update_channel.dev": "Dev Channel",
"app.about.update_channel.latest": "Latest Channel",
"app.about.update_status.check_failed": "Update check failed: {{error}}",
"app.about.update_status.checking": "Checking for updates...",
"app.about.update_status.latest": "You are on the latest version ({{version}})",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "Open Install Directory",
"app.update.backend.error.check_failed": "Check for updates failed: {{detail}}",
"app.update.backend.error.check_http_status": "Check for updates failed: HTTP {{status}}",
"app.update.backend.error.channel_invalid": "Invalid update channel: {{channel}}",
"app.update.backend.error.download_failed": "Update download failed: {{detail}}",
"app.update.backend.error.install_unsupported": "Update installation is not supported on this platform: {{platform}}",
"app.update.backend.error.latest_version_unparseable": "Unable to parse the latest version",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "Update package not found: {{name}}",
"app.update.backend.message.app_directory_unavailable": "Cannot access app directory: {{path}}",
"app.update.backend.message.app_directory_unresolved_download": "Cannot determine the current app directory, so the update cannot be downloaded",
"app.update.backend.message.channel_change_blocked_downloading": "An update package is downloading, so the update channel cannot be changed right now",
"app.update.backend.message.channel_change_failed": "Failed to save update channel: {{detail}}",
"app.update.backend.message.channel_changed": "Update channel switched to: {{channel}}",
"app.update.backend.message.check_first": "Check for updates first",
"app.update.backend.message.checksum_failed": "Update package checksum failed. Try again.",
"app.update.backend.message.checksum_missing": "Update package checksum is missing (SHA256SUMS)",

View File

@@ -2426,9 +2426,11 @@
"app.about.download_progress.title_with_version": "更新をダウンロード {{version}}",
"app.about.field.author": "作者",
"app.about.field.community": "コミュニティ",
"app.about.field.update_channel": "更新チャネル",
"app.about.field.update_status": "更新状況",
"app.about.field.version": "バージョン",
"app.about.message.check_failed_with_error": "更新確認に失敗しました: {{error}}",
"app.about.message.channel_switch_failed_with_error": "更新チャネルの切り替えに失敗しました: {{error}}",
"app.about.message.download_completed": "更新のダウンロードが完了しました",
"app.about.message.download_completed_with_path": "更新のダウンロードが完了しました。パッケージパス: {{path}}",
"app.about.message.download_failed_with_error": "更新のダウンロードに失敗しました: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "更新パッケージの準備ができました({{version}})。パス: {{path}}",
"app.about.project_links": "プロジェクトリンク",
"app.about.title": "GoNavi について",
"app.about.update_channel.dev": "Dev チャネル",
"app.about.update_channel.latest": "Latest チャネル",
"app.about.update_status.check_failed": "更新確認に失敗しました: {{error}}",
"app.about.update_status.checking": "更新を確認しています...",
"app.about.update_status.latest": "現在は最新バージョンです({{version}}",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "インストールディレクトリを開く",
"app.update.backend.error.check_failed": "更新確認に失敗しました: {{detail}}",
"app.update.backend.error.check_http_status": "更新確認に失敗しました: HTTP {{status}}",
"app.update.backend.error.channel_invalid": "無効な更新チャネルです: {{channel}}",
"app.update.backend.error.download_failed": "更新のダウンロードに失敗しました: {{detail}}",
"app.update.backend.error.install_unsupported": "このプラットフォームでは更新のインストールに対応していません: {{platform}}",
"app.update.backend.error.latest_version_unparseable": "最新バージョン番号を解析できません",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "更新パッケージが見つかりません: {{name}}",
"app.update.backend.message.app_directory_unavailable": "アプリディレクトリにアクセスできません: {{path}}",
"app.update.backend.message.app_directory_unresolved_download": "現在のアプリディレクトリを特定できないため、更新をダウンロードできません",
"app.update.backend.message.channel_change_blocked_downloading": "更新パッケージをダウンロード中のため、今は更新チャネルを切り替えられません",
"app.update.backend.message.channel_change_failed": "更新チャネルの保存に失敗しました: {{detail}}",
"app.update.backend.message.channel_changed": "更新チャネルを切り替えました: {{channel}}",
"app.update.backend.message.check_first": "先に更新を確認してください",
"app.update.backend.message.checksum_failed": "更新パッケージのチェックサム検証に失敗しました。もう一度お試しください。",
"app.update.backend.message.checksum_missing": "更新パッケージのチェックサムがありません (SHA256SUMS)",

View File

@@ -2426,9 +2426,11 @@
"app.about.download_progress.title_with_version": "Скачать обновление {{version}}",
"app.about.field.author": "Автор",
"app.about.field.community": "Сообщество",
"app.about.field.update_channel": "Канал обновления",
"app.about.field.update_status": "Статус обновления",
"app.about.field.version": "Версия",
"app.about.message.check_failed_with_error": "Проверка обновлений не удалась: {{error}}",
"app.about.message.channel_switch_failed_with_error": "Не удалось переключить канал обновления: {{error}}",
"app.about.message.download_completed": "Загрузка обновления завершена",
"app.about.message.download_completed_with_path": "Загрузка обновления завершена. Путь к пакету: {{path}}",
"app.about.message.download_failed_with_error": "Не удалось скачать обновление: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "Пакет обновления готов ({{version}}), путь: {{path}}",
"app.about.project_links": "Ссылки проекта",
"app.about.title": "О GoNavi",
"app.about.update_channel.dev": "Dev канал",
"app.about.update_channel.latest": "Latest канал",
"app.about.update_status.check_failed": "Проверка обновлений не удалась: {{error}}",
"app.about.update_status.checking": "Проверка обновлений...",
"app.about.update_status.latest": "У вас установлена последняя версия ({{version}})",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "Открыть каталог установки",
"app.update.backend.error.check_failed": "Не удалось проверить обновления: {{detail}}",
"app.update.backend.error.check_http_status": "Не удалось проверить обновления: HTTP {{status}}",
"app.update.backend.error.channel_invalid": "Недопустимый канал обновления: {{channel}}",
"app.update.backend.error.download_failed": "Не удалось скачать обновление: {{detail}}",
"app.update.backend.error.install_unsupported": "Установка обновления не поддерживается на этой платформе: {{platform}}",
"app.update.backend.error.latest_version_unparseable": "Не удалось разобрать номер последней версии",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "Пакет обновления не найден: {{name}}",
"app.update.backend.message.app_directory_unavailable": "Нет доступа к каталогу приложения: {{path}}",
"app.update.backend.message.app_directory_unresolved_download": "Не удалось определить текущий каталог приложения, поэтому обновление нельзя скачать",
"app.update.backend.message.channel_change_blocked_downloading": "Пакет обновления сейчас скачивается, поэтому канал обновления пока нельзя переключить",
"app.update.backend.message.channel_change_failed": "Не удалось сохранить канал обновления: {{detail}}",
"app.update.backend.message.channel_changed": "Канал обновления переключен на: {{channel}}",
"app.update.backend.message.check_first": "Сначала проверьте обновления",
"app.update.backend.message.checksum_failed": "Проверка контрольной суммы пакета обновления не пройдена. Повторите попытку.",
"app.update.backend.message.checksum_missing": "Отсутствует контрольная сумма пакета обновления (SHA256SUMS)",

View File

@@ -2426,11 +2426,13 @@
"app.about.download_progress.title_with_version": "下载更新 {{version}}",
"app.about.field.author": "作者",
"app.about.field.community": "技术圈",
"app.about.field.update_channel": "更新通道",
"app.about.field.update_status": "更新状态",
"app.about.field.version": "版本",
"app.about.message.check_failed_with_error": "检查更新失败: {{error}}",
"app.about.message.download_completed": "更新下载完成",
"app.about.message.download_completed_with_path": "更新下载完成,更新包路径:{{path}}",
"app.about.message.channel_switch_failed_with_error": "切换更新通道失败:{{error}}",
"app.about.message.download_failed_with_error": "更新下载失败: {{error}}",
"app.about.message.install_directory_opened_manual_replace": "已打开安装目录,请手动完成替换",
"app.about.message.install_failed_with_error": "更新安装失败: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "更新包已就绪({{version}}),路径:{{path}}",
"app.about.project_links": "项目入口",
"app.about.title": "关于 GoNavi",
"app.about.update_channel.dev": "dev 通道",
"app.about.update_channel.latest": "latest 通道",
"app.about.update_status.check_failed": "检查更新失败: {{error}}",
"app.about.update_status.checking": "正在检查更新...",
"app.about.update_status.latest": "当前已是最新版本({{version}}",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "打开安装目录",
"app.update.backend.error.check_failed": "检查更新失败:{{detail}}",
"app.update.backend.error.check_http_status": "检查更新失败HTTP {{status}}",
"app.update.backend.error.channel_invalid": "无效的更新通道:{{channel}}",
"app.update.backend.error.download_failed": "更新下载失败:{{detail}}",
"app.update.backend.error.install_unsupported": "当前平台暂不支持更新安装:{{platform}}",
"app.update.backend.error.latest_version_unparseable": "无法解析最新版本号",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "未找到更新包:{{name}}",
"app.update.backend.message.app_directory_unavailable": "无法访问应用目录:{{path}}",
"app.update.backend.message.app_directory_unresolved_download": "无法确定当前应用目录,无法下载更新",
"app.update.backend.message.channel_change_blocked_downloading": "更新包正在下载中,暂时不能切换更新通道",
"app.update.backend.message.channel_change_failed": "保存更新通道失败:{{detail}}",
"app.update.backend.message.channel_changed": "更新通道已切换为:{{channel}}",
"app.update.backend.message.check_first": "请先检查更新",
"app.update.backend.message.checksum_failed": "更新包校验失败,请重试",
"app.update.backend.message.checksum_missing": "缺少更新包校验值SHA256SUMS",

View File

@@ -2426,11 +2426,13 @@
"app.about.download_progress.title_with_version": "下載更新 {{version}}",
"app.about.field.author": "作者",
"app.about.field.community": "技術圈",
"app.about.field.update_channel": "更新通道",
"app.about.field.update_status": "更新状态",
"app.about.field.version": "版本",
"app.about.message.check_failed_with_error": "檢查更新失敗: {{error}}",
"app.about.message.download_completed": "更新下載完成",
"app.about.message.download_completed_with_path": "更新下載完成,更新套件路徑:{{path}}",
"app.about.message.channel_switch_failed_with_error": "切換更新通道失敗:{{error}}",
"app.about.message.download_failed_with_error": "更新下載失敗: {{error}}",
"app.about.message.install_directory_opened_manual_replace": "已開啟安裝目錄,請手動完成替換",
"app.about.message.install_failed_with_error": "更新安裝失敗: {{error}}",
@@ -2441,6 +2443,8 @@
"app.about.message.update_package_ready_with_path": "更新套件已就緒({{version}}),路徑:{{path}}",
"app.about.project_links": "專案入口",
"app.about.title": "關於 GoNavi",
"app.about.update_channel.dev": "dev 通道",
"app.about.update_channel.latest": "latest 通道",
"app.about.update_status.check_failed": "檢查更新失敗: {{error}}",
"app.about.update_status.checking": "正在檢查更新...",
"app.about.update_status.latest": "目前已是最新版本({{version}}",
@@ -2862,6 +2866,7 @@
"app.update.action.open_install_directory": "開啟安裝目錄",
"app.update.backend.error.check_failed": "檢查更新失敗:{{detail}}",
"app.update.backend.error.check_http_status": "檢查更新失敗HTTP {{status}}",
"app.update.backend.error.channel_invalid": "無效的更新通道:{{channel}}",
"app.update.backend.error.download_failed": "更新下載失敗:{{detail}}",
"app.update.backend.error.install_unsupported": "目前平台暫不支援更新安裝:{{platform}}",
"app.update.backend.error.latest_version_unparseable": "無法解析最新版本號",
@@ -2875,6 +2880,9 @@
"app.update.backend.error.update_package_not_found": "未找到更新套件:{{name}}",
"app.update.backend.message.app_directory_unavailable": "無法存取應用程式目錄:{{path}}",
"app.update.backend.message.app_directory_unresolved_download": "無法判斷目前應用程式目錄,因此無法下載更新",
"app.update.backend.message.channel_change_blocked_downloading": "更新套件正在下載中,暫時不能切換更新通道",
"app.update.backend.message.channel_change_failed": "保存更新通道失敗:{{detail}}",
"app.update.backend.message.channel_changed": "更新通道已切換為:{{channel}}",
"app.update.backend.message.check_first": "請先檢查更新",
"app.update.backend.message.checksum_failed": "更新套件校驗失敗,請重試",
"app.update.backend.message.checksum_missing": "缺少更新套件校驗值SHA256SUMS",