feat: support release windows installer with squirrel (#1965)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Horus
2023-04-17 08:28:29 +08:00
committed by GitHub
parent c76bbeab67
commit 134e1e8668
5 changed files with 30 additions and 2 deletions
+13
View File
@@ -32,6 +32,14 @@ module.exports = {
setupIcon: './resources/icons/icon.ico',
},
},
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'AFFiNE',
setupIcon: './resources/icons/icon.ico',
// loadingGif: './resources/icons/loading.gif',
},
},
],
hooks: {
generateAssets: async (_, platform, arch) => {
@@ -43,6 +51,11 @@ module.exports = {
process.env.TARGET = 'aarch64-apple-darwin';
}
if (platform === 'win32') {
$.shell = 'powershell.exe';
$.prefix = '';
}
// run yarn generate-assets
await $`yarn generate-assets`;
},