feat: update installer view as per design

This commit is contained in:
emizzle 2021-01-20 12:15:58 +11:00 committed by Eric Mastro
parent cbabf27d26
commit afb7c44ca5
4 changed files with 24 additions and 6 deletions

BIN
assets/OPEN ME.webloc Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 914 B

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 25 KiB

30
cli.js
View File

@ -121,26 +121,44 @@ async function init() {
// Use transparent background and `background-color` option when this is fixed:
// https://github.com/LinusU/node-appdmg/issues/135
background: path.join(__dirname, 'assets/dmg-background.png'),
'icon-size': 160,
'icon-size': 75,
format: dmgFormat,
window: {
size: {
width: 660,
height: 400
height: 420
}
},
contents: [
{
x: 180,
y: 170,
x: 200,
y: 140,
type: 'file',
path: appPath
},
{
x: 480,
y: 170,
x: 440,
y: 140,
type: 'link',
path: '/Applications'
},
{
x: 320,
y: 315,
type: 'link',
path: path.join(__dirname, 'assets/OPEN ME.webloc')
},
{
x: 280,
y: 450,
type: 'position',
path: '.background'
},
{
x: 380,
y: 450,
type: 'position',
path: '.VolumeIcon.icns'
}
]
}