{
"title": "Test Application",
"icon": "test-app.icns",
"background": "test-background.png",
"contents": [
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
{ "x": 192, "y": 344, "type": "file", "path": "/Applications/TestApp.app" },
{ "x": 5000, "y": 0, "type": "position", "path": ".VolumeIcon.icns" },
{ "x": 5000, "y": 0, "type": "position", "path": ".background" },
{ "x": 5000, "y": 0, "type": "position", "path": ".DS_Store"}
]
}
If contents contains items with "type": "position"
- Will affect the x and y values in "type": "file" and "type": "link".
- When the user uses the shortcut keys
command + shift + . to show/hide files, it will cause layout confusion. (If it doesn’t happen again, you can exit dmg and reopen it)