mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-07 05:16:30 +03:00
chore: fix renderer entry path not found in desktop development (#6270)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
parent
7e161682f0
commit
a1532d4df2
@ -99,12 +99,17 @@ flags.distribution = buildFlags.distribution;
|
|||||||
flags.mode = buildFlags.mode;
|
flags.mode = buildFlags.mode;
|
||||||
flags.channel = buildFlags.channel;
|
flags.channel = buildFlags.channel;
|
||||||
flags.coverage = buildFlags.coverage;
|
flags.coverage = buildFlags.coverage;
|
||||||
|
flags.entry = undefined;
|
||||||
|
|
||||||
const cwd =
|
const cwd =
|
||||||
flags.distribution === 'browser'
|
flags.distribution === 'browser'
|
||||||
? join(projectRoot, 'packages', 'frontend', 'web')
|
? join(projectRoot, 'packages', 'frontend', 'web')
|
||||||
: join(projectRoot, 'packages', 'frontend', 'electron');
|
: join(projectRoot, 'packages', 'frontend', 'electron');
|
||||||
|
|
||||||
|
if (flags.distribution === 'desktop') {
|
||||||
|
flags.entry = join(cwd, 'renderer', 'index.tsx');
|
||||||
|
}
|
||||||
|
|
||||||
if (buildFlags.debugBlockSuite) {
|
if (buildFlags.debugBlockSuite) {
|
||||||
const { config } = await import('dotenv');
|
const { config } = await import('dotenv');
|
||||||
const envLocal = config({
|
const envLocal = config({
|
||||||
|
Loading…
Reference in New Issue
Block a user