feat: implement latest version updater for macos (#2214)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Horus
2023-05-09 02:21:15 +08:00
committed by GitHub
parent d1457075b3
commit 41d4af1dc1
21 changed files with 263 additions and 12 deletions

View File

@@ -72,6 +72,13 @@ const apis = {
updateEnv: (env: string, value: string) => {
ipcRenderer.invoke('main:env-update', env, value);
},
onClientUpdateInstall: () => {
ipcRenderer.invoke('ui:client-update-install');
},
onClientUpdateAvailable: (callback: (version: string) => void) => {
return onMainEvent('main:client-update-available', callback);
},
};
const appInfo = {