mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat: implement latest version updater for macos (#2214)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user