fix(electron): fix build script (#6422)

This commit is contained in:
EYHN
2024-04-01 07:51:35 +00:00
parent f4e1e23120
commit 9c6eba8971
3 changed files with 10 additions and 4 deletions

View File

@@ -44,8 +44,8 @@ const getDistribution = () => {
cwd = path.join(projectRoot, 'packages/frontend/web');
return 'browser';
case 'desktop':
cwd = path.join(projectRoot, 'packages/frontend/electron');
entry = path.join(cwd, 'renderer', 'index.tsx');
cwd = path.join(projectRoot, 'packages/frontend/electron/renderer');
entry = path.join(cwd, 'index.tsx');
return DISTRIBUTION;
default: {
throw new Error('DISTRIBUTION must be one of browser, desktop');