[READ-ONLY] Mirror of https://github.com/probablykasper/embler. Turn binaries into applications npmjs.com/package/embler
app builder cli dmg macos node package packager
0

Configure Feed

Select the types of activity you want to include in your feed.

dmg improvements

Kasper (Aug 18, 2020, 1:51 AM +0200) 62a3afea d08f36c0

+12 -8
assets/dmg-background.png

This is a binary file and will not be displayed.

assets/dmg-background@2x.png

This is a binary file and will not be displayed.

+12 -8
src/build.js
··· 34 34 .keys({ 35 35 binary: Joi.path().existingFile().required(), 36 36 category: Joi.string(), 37 + dmgBackground: Joi.path().existingFile() 38 + .default(path.resolve(__dirname, '../assets/dmg-background.png')), 37 39 icon: Joi.path().existingFile().endsWith('png', 'icns'), 38 - formats: Joi.array() 39 - .unique() 40 + formats: Joi.array().unique() 40 41 .items('app', 'dmg', 'app/dmg') 41 42 .default([ 'app' ]), 42 43 darkModeSupport: Joi.bool().default(true), ··· 139 140 specification: { 140 141 title: options.realName, 141 142 icon: paths.icon, 143 + 'icon-size': 160, 144 + window: { size: { width: 660, height: 400 } }, 145 + background: options.mac.dmgBackground, 142 146 contents: [ 143 - { x: 192, y: 344, type: 'file', path: paths.app }, 144 - { x: 448, y: 344, type: 'link', path: '/Applications' }, 145 - { x: 100, y: 100, type: 'position', path: '.background' }, 146 - { x: 100, y: 100, type: 'position', path: '.DS_Store' }, 147 - { x: 100, y: 100, type: 'position', path: '.Trashes' }, 148 - { x: 100, y: 100, type: 'position', path: '.VolumeIcon.icns' }, 147 + { x: 180, y: 170, type: 'file', path: paths.app }, 148 + { x: 480, y: 170, type: 'link', path: '/Applications' }, 149 + { x: 180, y: 480, type: 'position', path: '.background' }, 150 + { x: 180, y: 480, type: 'position', path: '.VolumeIcon.icns' }, 151 + { x: 180, y: 480, type: 'position', path: '.DS_Store' }, 152 + { x: 180, y: 480, type: 'position', path: '.Trashes' }, 149 153 ], 150 154 // background: '' 151 155 },