Skip to content

Commit

Permalink
fix forge.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Dec 12, 2024
1 parent 8d603ac commit a0a6db9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { FuseV1Options, FuseVersion } = require('@electron/fuses');

module.exports = {
packagerConfig: {
icon: './assets/dmg-background.png',
asar: true,
},
rebuildConfig: {},
Expand All @@ -11,10 +12,23 @@ module.exports = {
name: '@electron-forge/maker-squirrel',
config: {},
},
{
name: '@electron-forge/maker-zip',
platforms: ['win32'], // Windows ZIP 格式
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-dmg',
config: {
background: './assets/dmg-background.png',
format: 'ULFO',
icon: './assets/dmg-background.png',
overwrite: true,
}
},
{
name: '@electron-forge/maker-deb',
config: {},
Expand All @@ -23,13 +37,6 @@ module.exports = {
name: '@electron-forge/maker-rpm',
config: {},
},
{
name: '@electron-forge/maker-dmg',
config: {
background: './assets/dmg-background.png',
format: 'ULFO'
}
},
],
plugins: [
{
Expand Down

0 comments on commit a0a6db9

Please sign in to comment.