feat: custom maker dmg (#3501)

This commit is contained in:
Alex Yang
2023-08-01 12:20:29 -07:00
committed by GitHub
parent 03f12f6aa4
commit 1b17743ed3
15 changed files with 287 additions and 298 deletions
+12 -17
View File
@@ -59,28 +59,23 @@ module.exports = {
},
makers: [
{
name: '@electron-forge/maker-dmg',
name: '@affine/maker-dmg',
config: {
format: 'ULFO',
icon: icnsPath,
name: 'AFFiNE',
'icon-size': 128,
background: './resources/icons/dmg-background.png',
contents: [
{
x: 176,
y: 192,
type: 'file',
path: path.resolve(
__dirname,
'out',
buildType,
`${productName}-darwin-${arch}`,
`${productName}.app`
),
},
{ x: 432, y: 192, type: 'link', path: '/Applications' },
],
background: path.resolve(
__dirname,
'./resources/icons/dmg-background.png'
),
file: path.resolve(
__dirname,
'out',
buildType,
`${productName}-darwin-${arch}`,
`${productName}.app`
),
},
},
{