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`
),
},
},
{
+1 -1
View File
@@ -25,6 +25,7 @@
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*",
"@affine/maker-dmg": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230731152415-fdd3d9b0-nightly",
"@blocksuite/editor": "0.0.0-20230731152415-fdd3d9b0-nightly",
@@ -34,7 +35,6 @@
"@electron-forge/core": "^6.2.1",
"@electron-forge/core-utils": "^6.2.1",
"@electron-forge/maker-deb": "^6.2.1",
"@electron-forge/maker-dmg": "^6.2.1",
"@electron-forge/maker-squirrel": "^6.2.1",
"@electron-forge/maker-zip": "^6.2.1",
"@electron-forge/shared-types": "^6.2.1",