Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const dmgOpt = {
target: 'release/darwin/getsub.dmg',
basepath: buildPath[0],
specification: {
title: 'Getsub',
contents: [
{x: 122, y: 240, type: 'file', path: 'Getsub.app'},
{x: 380, y: 240, type: 'link', path: '/Applications'},
{x: 50, y: 500, type: 'position', path: '.background'},
{x: 100, y: 500, type: 'position', path: '.DS_Store'},
{x: 150, y: 500, type: 'position', path: '.Trashes'},
{x: 200, y: 500, type: 'position', path: '.VolumeIcon.icns'}
]
}
}
const dmg = appdmg(dmgOpt)
dmg.once('error', (err) => cb(err))
dmg.once('finish', () => cb(null))
}