add: auto update launcher
This commit is contained in:
@ -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);
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user