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

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
BABA 2024-03-23 21:12:23 +08:00 committed by GitHub
parent 7e161682f0
commit a1532d4df2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({