Also I am using the maker-dmg here is the config for that:
{
name: '@electron-forge/maker-dmg',
// platforms: ["darwin"], // optional
config: {
name: `vitalpathbrowser-${process.argv[4]}`,
background: './electron-app/assets/background.png',
icon: './electron-app/assets/icon.icns',
iconSize: 150,
overwrite: true,
additionalDMGOptions: {
window: {
size: {
height: 380,
width: 540,
},
},
},
contents: [
{
x: 162,
y: 240,
type: 'file',
path: `${process.cwd()}/electron-app/out/vitalpathbrowser-darwin-${
process.argv[4]
}/vitalpathbrowser.app`,
},
{
x: 380,
y: 240,
type: 'link',
path: '/Applications',
},
],
},
},