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

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
HorusandHimself65 authored and GitHub committed 2023-04-16 19:28:29 -05:00
1 parent c76bbeab67
commit 134e1e8668
5 files changed
+30 -2

No files matched your search

+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`;
},