Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: updater issue

Peng Xiao4444c3d1a6bf
diff --git a/apps/electron/layers/main/src/handlers/updater/updater.ts b/apps/electron/layers/main/src/handlers/updater/updater.ts
index 019d593e8e..059e22a334 100644
--- a/apps/electron/layers/main/src/handlers/updater/updater.ts
+++ b/apps/electron/layers/main/src/handlers/updater/updater.ts
@@ -28,7 +28,8 @@ export const updateClient = async () => {
export const registerUpdater = async () => {
// require it will cause some side effects and will break generate-main-exposed-meta,
// so we wrap it in a function
- const { autoUpdater } = await import('electron-updater');
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
+ const { autoUpdater } = require('electron-updater');
_autoUpdater = autoUpdater;