feat: implement auto-update functionality with GitHub integration
- Added AutoUpdater class to manage update checks and downloads. - Integrated auto-updater in the main process after the main window is created. - Enhanced preload script to expose update-related IPC channels. - Created UpdateDialog component to handle user interactions for updates. - Implemented state management for update status using Pinia store. - Added localization support for update messages in multiple languages. - Documented auto-update configuration steps for private GitHub repositories. - Created .env.example for GitHub token configuration.
This commit is contained in:
1 parent
ac5488a21d
commit
0eb2dcf8c2
22 files changed
+882
-92
No files matched your search
+12
-2
@@ -14,9 +14,19 @@ const mainAvailChannels: string[] = [
|
||||
'msgLoadData',
|
||||
'msgSaveData',
|
||||
'msgExecuteTemplate',
|
||||
'msgFindFilesInFolder'
|
||||
'msgFindFilesInFolder',
|
||||
'msgCheckForUpdates',
|
||||
'msgDownloadUpdate',
|
||||
'msgInstallUpdate'
|
||||
]
|
||||
const rendererAvailChannels: string[] = [
|
||||
'update-checking',
|
||||
'update-available',
|
||||
'update-not-available',
|
||||
'update-download-progress',
|
||||
'update-downloaded',
|
||||
'update-error'
|
||||
]
|
||||
const rendererAvailChannels: string[] = []
|
||||
|
||||
contextBridge.exposeInMainWorld('mainApi', {
|
||||
send: (channel: string, ...data: any[]): void => {
|
||||
|
||||
Reference in new issue
Block a user