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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: app updater not working for internal release (#2377)
Horus68b4f792f005
diff --git a/apps/electron/scripts/generate-assets.mjs b/apps/electron/scripts/generate-assets.mjsindex afee19c86b..abf5c2f384 100644--- a/apps/electron/scripts/generate-assets.mjs+++ b/apps/electron/scripts/generate-assets.mjs@@ -59,6 +59,17 @@ if (!process.env.SKIP_WEB_BUILD) {await fs.move(affineWebOutDir, publicAffineOutDir, { overwrite: true });}+// step 3: update app-updater.yml content with build type in resources folder+if (process.env.BUILD_TYPE === 'internal') {+ const appUpdaterYml = path.join(publicDistDir, 'app-update.yml');+ const appUpdaterYmlContent = await fs.readFile(appUpdaterYml, 'utf-8');+ const newAppUpdaterYmlContent = appUpdaterYmlContent.replace(+ 'AFFiNE',+ 'AFFiNE-Releases'+ );+ await fs.writeFile(appUpdaterYml, newAppUpdaterYmlContent);+}+/// --------/// --------/// --------