enhance(build): use asar, add windows zip release

This commit is contained in:
Andelf
2023-12-11 17:57:24 +08:00
parent 52cb22c4c5
commit 285463fddb
3 changed files with 98 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ module.exports = {
name: 'Logseq',
icon: './icons/logseq_big_sur.icns',
buildVersion: 75,
asar: true,
protocols: [
{
"protocol": "logseq",
@@ -47,8 +48,9 @@ module.exports = {
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin', 'linux']
platforms: ['darwin', 'linux', 'win32'],
},
{
name: 'electron-forge-maker-appimage',
platforms: ['linux'],
@@ -69,5 +71,12 @@ module.exports = {
prerelease: true
}
}
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {}
}
]
}