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.

chore: fix renderer entry path not found in desktop development (#6270)

BABAa1532d4df276
diff --git a/tools/cli/src/bin/dev.ts b/tools/cli/src/bin/dev.ts
index b743b19115..e5ff300c7c 100644
--- a/tools/cli/src/bin/dev.ts
+++ b/tools/cli/src/bin/dev.ts
@@ -99,12 +99,17 @@ flags.distribution = buildFlags.distribution;
flags.mode = buildFlags.mode;
flags.channel = buildFlags.channel;
flags.coverage = buildFlags.coverage;
+flags.entry = undefined;
const cwd =
flags.distribution === 'browser'
? join(projectRoot, 'packages', 'frontend', 'web')
: join(projectRoot, 'packages', 'frontend', 'electron');
+if (flags.distribution === 'desktop') {
+ flags.entry = join(cwd, 'renderer', 'index.tsx');
+}
+
if (buildFlags.debugBlockSuite) {
const { config } = await import('dotenv');
const envLocal = config({