Closed cstruct closed 8 years ago
This branch has conflicts that must be resolved
Sorry about that 💃
@LinusU, I changed the spec to MSON. What do you think?
To be honest, I don't love it :)
Especially when viewing it as rendered markdown it doesn't look too good. Maybe we should have a "quick start" example in JSON, and then document all the options in detail further down?
Minimal quick start example:
{
// The title of the produced DMG, which will be shown when mounted
"title": "Test Title",
// Path to your icon, which will be shown when mounted
"icon": "TestIcon.icns",
// Path to your background
"background": "TestBkg.png",
"contents": [
// This is the contents of your DMG.
// Each entry has a position specified by
// X and Y in the center of its icon.
// `type: link` creates a link to the specified target
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
// `type: file` adds a file to the DMG
{ "x": 192, "y": 344, "type": "file", "path": "TestApp.app" }
]
}
@LinusU Updated to use a working JSON example and a simplified MSON (without value examples and all keys qouted).
Looking awesome 🙌 LGTM
Doesn't it feel like the entire
window
object is required now though?