mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import { app } from 'electron';
|
|
|
|
import type { NamespaceHandlers } from '../type';
|
|
import { checkForUpdatesAndNotify, quitAndInstall } from './electron-updater';
|
|
|
|
export const updaterHandlers = {
|
|
currentVersion: async () => {
|
|
return app.getVersion();
|
|
},
|
|
quitAndInstall: async () => {
|
|
return quitAndInstall();
|
|
},
|
|
checkForUpdatesAndNotify: async () => {
|
|
return checkForUpdatesAndNotify(true);
|
|
},
|
|
} satisfies NamespaceHandlers;
|
|
|
|
export * from './electron-updater';
|