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: disable updater for internal (#3819)

Peng Xiaoe4e17ff606b6
diff --git a/apps/electron/src/main/updater/electron-updater.ts b/apps/electron/src/main/updater/electron-updater.ts
index b1c2030069..56f8249523 100644
--- a/apps/electron/src/main/updater/electron-updater.ts
+++ b/apps/electron/src/main/updater/electron-updater.ts
@@ -35,8 +35,8 @@ export const checkForUpdates = async (force = true) => {
};
export const registerUpdater = async () => {
- // skip auto update in dev mode
- if (isDev) {
+ // skip auto update in dev mode & internal
+ if (isDev || buildType === 'internal') {
return;
}
@@ -52,6 +52,7 @@ export const registerUpdater = async () => {
const feedUrl: Parameters<typeof autoUpdater.setFeedURL>[0] = {
channel: buildType,
provider: 'github',
+ // @ts-expect-error - just ignore for now
repo: buildType !== 'internal' ? 'AFFiNE' : 'AFFiNE-Releases',
owner: 'toeverything',
releaseType: buildType === 'stable' ? 'release' : 'prerelease',