add: auto update launcher

This commit is contained in:
2025-07-08 02:30:35 +05:00
parent 5cd483209f
commit 31a26dc1ce
11 changed files with 132 additions and 20 deletions

View File

@ -9,7 +9,9 @@ export type Channels =
| 'close-app'
| 'minimize-app'
| 'save-pack-config'
| 'load-pack-config';
| 'load-pack-config'
| 'update-available'
| 'install-update';
const electronHandler = {
ipcRenderer: {
@ -28,7 +30,7 @@ const electronHandler = {
once(channel: Channels, func: (...args: unknown[]) => void) {
ipcRenderer.once(channel, (_event, ...args) => func(...args));
},
invoke(channel: string, ...args: unknown[]) {
invoke(channel: Channels, ...args: unknown[]): Promise<any> {
return ipcRenderer.invoke(channel, ...args);
},
},