Skip to content

Commit

Permalink
chore: fix renderer entry path not found in desktop development (#6270)
Browse files Browse the repository at this point in the history
Co-authored-by: LongYinan <lynweklm@gmail.com>
  • Loading branch information
BABA983 and Brooooooklyn committed Mar 23, 2024
1 parent 7e16168 commit a1532d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/cli/src/bin/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit a1532d4

Please sign in to comment.