feat: auto-updater integration

- Install electron-updater
- New updater.ts: check/download/install with progress events
- IPC: updater:check, updater:download, updater:install, updater:status
- Preload bridge for updater API
- electron-builder publish config (github provider)
- Fix build files path: out -> electron-dist
- i18n keys for updater notifications (zh-CN + en)
This commit is contained in:
2026-07-05 22:13:25 +08:00
parent d131a2732d
commit 405dfa77c4
9 changed files with 163 additions and 11 deletions
+10
View File
@@ -166,6 +166,16 @@ export default {
clear: 'Clear',
empty: 'No commands recorded',
},
updater: {
checking: 'Checking for updates...',
available: 'New version {version} available',
notAvailable: 'You are up to date',
downloading: 'Downloading... {percent}%',
downloaded: 'Update downloaded. Restart now?',
install: 'Restart Now',
later: 'Later',
error: 'Update failed: {message}',
},
status: {
title: 'Status',
database: 'Database',
+10
View File
@@ -166,6 +166,16 @@ export default {
clear: '清空',
empty: '暂无命令记录',
},
updater: {
checking: '正在检查更新...',
available: '发现新版本 {version}',
notAvailable: '已是最新版本',
downloading: '正在下载... {percent}%',
downloaded: '更新已下载,重启安装?',
install: '立即重启',
later: '稍后',
error: '更新失败: {message}',
},
status: {
title: '状态',
database: '数据库',