fix: allow multiple versions to be installed on windows (#3740)

This commit is contained in:
Peng Xiao
2023-08-14 23:40:00 +08:00
committed by GitHub
parent 1072db632e
commit 08da58aa1e
2 changed files with 4 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ const makers = [
!process.env.SKIP_BUNDLE && {
name: '@electron-forge/maker-squirrel',
config: {
name: 'AFFiNE',
name: productName,
setupIcon: icoPath,
iconUrl: windowsIconUrl,
loadingGif: './resources/icons/affine_installing.gif',

View File

@@ -37,12 +37,14 @@ if (process.platform === 'win32') {
$.prefix = '';
}
$.env.DISTRIBUTION = 'desktop';
cd(repoRootDir);
// step 1: build web (nextjs) dist
if (!process.env.SKIP_WEB_BUILD) {
await $`yarn -T run build:plugins`;
await $`DISTRIBUTION=desktop yarn nx build @affine/core`;
await $`yarn nx build @affine/core`;
await fs.move(affineCoreOutDir, publicAffineOutDir, { overwrite: true });
}