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

@@ -12,7 +12,13 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const repoRootDir = path.join(__dirname, '..', '..', '..', '..');
const electronRootDir = path.join(__dirname, '..');
const publicDistDir = path.join(electronRootDir, 'resources');
const webDir = path.join(repoRootDir, 'packages', 'frontend', 'electron');
const webDir = path.join(
repoRootDir,
'packages',
'frontend',
'electron',
'renderer'
);
const affineWebOutDir = path.join(webDir, 'dist');
const publicAffineOutDir = path.join(publicDistDir, `web-static`);
const releaseVersionEnv = process.env.RELEASE_VERSION || '';