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(electron): remove unused code

himself65dc4979a80cb6
diff --git a/apps/electron/layers/main/src/handlers/updater/updater.ts b/apps/electron/layers/main/src/handlers/updater/updater.ts
index f1dc31cab2..ef09de9e3e 100644
--- a/apps/electron/layers/main/src/handlers/updater/updater.ts
+++ b/apps/electron/layers/main/src/handlers/updater/updater.ts
@@ -38,18 +38,6 @@ export const registerUpdater = async () => {
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
});
- _autoUpdater.autoDownload = false;
- _autoUpdater.allowPrerelease = buildType !== 'stable';
- _autoUpdater.autoInstallOnAppQuit = false;
- _autoUpdater.autoRunAppAfterInstall = true;
- _autoUpdater.setFeedURL({
- channel: buildType,
- provider: 'github',
- repo: 'AFFiNE',
- owner: 'toeverything',
- releaseType: buildType === 'stable' ? 'release' : 'prerelease',
- });
-
if (isMacOS()) {
_autoUpdater.on('update-available', () => {
_autoUpdater!.downloadUpdate();