fix: allow multiple versions to be installed on windows (#3740)
This commit is contained in:
@@ -82,7 +82,7 @@ const makers = [
|
|||||||
!process.env.SKIP_BUNDLE && {
|
!process.env.SKIP_BUNDLE && {
|
||||||
name: '@electron-forge/maker-squirrel',
|
name: '@electron-forge/maker-squirrel',
|
||||||
config: {
|
config: {
|
||||||
name: 'AFFiNE',
|
name: productName,
|
||||||
setupIcon: icoPath,
|
setupIcon: icoPath,
|
||||||
iconUrl: windowsIconUrl,
|
iconUrl: windowsIconUrl,
|
||||||
loadingGif: './resources/icons/affine_installing.gif',
|
loadingGif: './resources/icons/affine_installing.gif',
|
||||||
|
|||||||
@@ -37,12 +37,14 @@ if (process.platform === 'win32') {
|
|||||||
$.prefix = '';
|
$.prefix = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$.env.DISTRIBUTION = 'desktop';
|
||||||
|
|
||||||
cd(repoRootDir);
|
cd(repoRootDir);
|
||||||
|
|
||||||
// step 1: build web (nextjs) dist
|
// step 1: build web (nextjs) dist
|
||||||
if (!process.env.SKIP_WEB_BUILD) {
|
if (!process.env.SKIP_WEB_BUILD) {
|
||||||
await $`yarn -T run build:plugins`;
|
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 });
|
await fs.move(affineCoreOutDir, publicAffineOutDir, { overwrite: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user