{"_id":"appdmg-tf","_rev":"4244391","name":"appdmg-tf","description":"Generate beautiful DMG-images for your OS X applications.","dist-tags":{"latest":"0.4.9"},"maintainers":[{"name":"develar","email":""}],"time":{"modified":"2026-03-29T21:26:43.000Z","created":"2016-04-28T06:25:28.920Z","0.4.9":"2016-09-16T19:28:38.935Z","0.4.7":"2016-09-16T06:32:01.600Z","0.4.6":"2016-09-16T06:23:48.586Z","0.4.2":"2016-05-16T06:22:25.259Z","0.3.11":"2016-04-28T07:29:17.639Z","0.3.10":"2016-04-28T06:47:15.905Z","0.3.9":"2016-04-28T06:41:50.900Z","0.3.8":"2016-04-28T06:25:28.920Z"},"users":{},"author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"versions":{"0.4.9":{"name":"appdmg-tf","version":"0.4.9","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","files":["bin","lib","*.js","schema.json"],"dependencies":{"async":"^2.0.1","cp-file":"^3.2.0","ds-store":"^0.1.6","fs-temp":"^1.1.1","fs-xattr":"^0.1.14","image-size":"^0.5.0","is-my-json-valid":"^2.13.1","minimist":"^1.2.0","parse-color":"^1.0.0"},"engines":{"node":">=0.12"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^3.0.0","mocha":"^3.0.2","standard":"^8.0.0"},"gitHead":"f64a1a87b83de44cd99861122682947f6ab17da2","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.4.9","_shasum":"08b77acd527e7c5f5dec3723c2df57b2a67efb1e","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"08b77acd527e7c5f5dec3723c2df57b2a67efb1e","size":8817,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.4.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.4.9.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.4.9.tgz_1474054117134_0.31406851508654654"},"directories":{},"publish_time":1474054118935,"_hasShrinkwrap":false,"_cnpm_publish_time":1474054118935,"_cnpmcore_publish_time":"2021-12-17T01:15:53.311Z"},"0.4.7":{"name":"appdmg-tf","version":"0.4.7","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","dependencies":{"async":"^2.0.1","cp-file":"^3.2.0","ds-store":"^0.1.6","execa":"^0.4.0","fs-temp":"^1.1.1","fs-xattr":"^0.1.14","image-size":"^0.5.0","is-my-json-valid":"^2.13.1","minimist":"^1.2.0","parse-color":"^1.0.0"},"engines":{"node":">=0.12"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^3.0.0","mocha":"^3.0.2","standard":"^8.0.0"},"gitHead":"f64a1a87b83de44cd99861122682947f6ab17da2","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.4.7","_shasum":"ff6b9c676288c25d2652e9be4d7a4d18d8954515","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.5.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"ff6b9c676288c25d2652e9be4d7a4d18d8954515","size":1347010,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.4.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.4.7.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.4.7.tgz_1474007519209_0.3952685606200248"},"directories":{},"publish_time":1474007521600,"_hasShrinkwrap":false,"_cnpm_publish_time":1474007521600,"_cnpmcore_publish_time":"2021-12-17T01:15:55.893Z"},"0.4.6":{"name":"appdmg-tf","version":"0.4.6","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","dependencies":{"async":"^2.0.1","cp-file":"^3.2.0","ds-store":"^0.1.6","execa":"^0.4.0","fs-temp":"^1.1.1","fs-xattr":"^0.1.14","image-size":"^0.5.0","is-my-json-valid":"^2.13.1","minimist":"^1.2.0","parse-color":"^1.0.0","repeat-string":"^1.5.4"},"engines":{"node":">=0.12"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^3.0.0","mocha":"^3.0.2","standard":"^8.0.0"},"gitHead":"0fdd2b0c0c13d8b14f8358c53b401f7e8afc2718","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.4.6","_shasum":"711f6b53570dee3070a74b809fd583d093d723c5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.5.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"711f6b53570dee3070a74b809fd583d093d723c5","size":1347180,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.4.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.4.6.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.4.6.tgz_1474007027135_0.6139830325264484"},"directories":{},"publish_time":1474007028586,"_hasShrinkwrap":false,"_cnpm_publish_time":1474007028586,"_cnpmcore_publish_time":"2021-12-17T01:15:59.105Z"},"0.4.2":{"name":"appdmg-tf","version":"0.4.2","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","preferGlobal":true,"dependencies":{"async":"^1.4.2","cp-file":"^3.1.0","ds-store":"^0.1.6","execa":"^0.4.0","fs-temp":"^1.0.0","fs-xattr":"^0.1.14","image-size":"^0.5.0","is-my-json-valid":"^2.13.1","minimist":"^1.2.0","parse-color":"^1.0.0","repeat-string":"^1.5.4"},"engines":{"node":">=0.12"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^2.2.2","mocha":"^2.4.5","standard":"^7.0.1"},"gitHead":"51feacf895f0244ea5454d08f1ba19a062f2331e","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.4.2","_shasum":"f8ae8f73805793d3952b7c9437b2d8dbaadfda58","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.1.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"f8ae8f73805793d3952b7c9437b2d8dbaadfda58","size":1077158,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.4.2.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.4.2.tgz_1463379742369_0.14367968682199717"},"directories":{},"publish_time":1463379745259,"_hasShrinkwrap":false,"_cnpm_publish_time":1463379745259,"_cnpmcore_publish_time":"2021-12-17T01:16:02.186Z"},"0.3.11":{"name":"appdmg-tf","version":"0.3.11","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","preferGlobal":true,"dependencies":{"async":"^1.4.2","ds-store":"~0.1.4","fs-temp":"^1.0.0","fs-xattr":"~0.1.11","image-size":"~0.4.0","minimist":"^1.1.3","repeat-string":"^1.5.2"},"engines":{"node":">=0.10.0"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^2.1.0","mocha":"^2.2.5","standard":"^6.0.5"},"gitHead":"8dd4b340776550165da2fce1432ac8ccd0a422ae","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.3.11","_shasum":"33f7e9361f6fb2241b579bc246b4b6334aae49f7","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"33f7e9361f6fb2241b579bc246b4b6334aae49f7","size":958989,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.3.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.3.11.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.3.11.tgz_1461828554738_0.9758019840810448"},"directories":{},"publish_time":1461828557639,"_hasShrinkwrap":false,"_cnpm_publish_time":1461828557639,"_cnpmcore_publish_time":"2021-12-17T01:16:04.763Z"},"0.3.10":{"name":"appdmg-tf","version":"0.3.10","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","preferGlobal":true,"dependencies":{"async":"^1.4.2","ds-store":"~0.1.4","fs-temp":"^1.0.0","fs-xattr":"~0.1.11","image-size":"~0.4.0","minimist":"^1.1.3","repeat-string":"^1.5.2"},"engines":{"node":">=0.10.0"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^2.1.0","mocha":"^2.2.5","standard":"^6.0.5"},"gitHead":"ee256207fc4cb69ccfeda132eabc6c76ce1ae836","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.3.10","_shasum":"0bdbe72f544c0739499a41e4919252fb0f639b31","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"0bdbe72f544c0739499a41e4919252fb0f639b31","size":958639,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.3.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.3.10.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.3.10.tgz_1461826033022_0.7393385567702353"},"directories":{},"publish_time":1461826035905,"_hasShrinkwrap":false,"_cnpm_publish_time":1461826035905,"_cnpmcore_publish_time":"2021-12-17T01:16:08.952Z"},"0.3.9":{"name":"appdmg-tf","version":"0.3.9","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","preferGlobal":true,"dependencies":{"async":"^1.4.2","ds-store":"~0.1.4","fs-temp":"^1.0.0","fs-xattr":"~0.1.11","image-size":"~0.4.0","minimist":"^1.1.3","repeat-string":"^1.5.2"},"engines":{"node":">=0.10.0"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^2.1.0","mocha":"^2.2.5","standard":"^6.0.5"},"gitHead":"ee256207fc4cb69ccfeda132eabc6c76ce1ae836","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.3.9","_shasum":"894229a055558b15326d624fc52d063e615e3277","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.0.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"894229a055558b15326d624fc52d063e615e3277","size":958608,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.3.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.3.9.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.3.9.tgz_1461825707374_0.2910954139661044"},"directories":{},"publish_time":1461825710900,"_hasShrinkwrap":false,"_cnpm_publish_time":1461825710900,"_cnpmcore_publish_time":"2021-12-17T01:16:11.744Z"},"0.3.8":{"name":"appdmg-tf","version":"0.3.8","license":"MIT","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"bin":{"appdmg-tf":"bin/appdmg.js"},"main":"index.js","preferGlobal":true,"dependencies":{"async":"^1.4.2","ds-store":"~0.1.4","fs-temp":"^1.0.0","fs-xattr":"~0.1.11","image-size":"~0.4.0","minimist":"^1.1.3","repeat-string":"^1.5.2"},"engines":{"node":">=0.10.0"},"os":["darwin"],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-appdmg.git"},"scripts":{"test":"standard && mocha -b"},"devDependencies":{"capture-window":"^0.1.3","looks-same":"^2.1.0","mocha":"^2.2.5","standard":"^6.0.5"},"gitHead":"ee256207fc4cb69ccfeda132eabc6c76ce1ae836","description":"Generate beautiful DMG-images for your OS X applications.","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"homepage":"https://github.com/LinusU/node-appdmg#readme","_id":"appdmg-tf@0.3.8","_shasum":"a09ddcfc3511f30f4ffd372d5d19fe9f82eac8ee","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.11.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"a09ddcfc3511f30f4ffd372d5d19fe9f82eac8ee","size":958379,"noattachment":false,"key":"/appdmg-tf/-/appdmg-tf-0.3.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/appdmg-tf/download/appdmg-tf-0.3.8.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/appdmg-tf-0.3.8.tgz_1461824725610_0.7838410250842571"},"directories":{},"publish_time":1461824728920,"_hasShrinkwrap":false,"_cnpm_publish_time":1461824728920,"_cnpmcore_publish_time":"2021-12-17T01:16:13.713Z"}},"readme":"# node-appdmg\n\nGenerate beautiful DMG-images for your OS X applications.\n\n## Installation\n\n```sh\nnpm install -g appdmg\n```\n\n## Usage\n\n```sh\nappdmg <json-path> <dmg-path>\n```\n\n- `json-path`: Path to the JSON Specification file\n- `dmg-path`:  Path at which to place the final DMG\n\n## Test\n\nTo produce a test DMG to your desktop, run the following command:\n\n```sh\nappdmg test/assets/appdmg.json ~/Desktop/test.dmg\n```\n\n## JSON Input\n\n![Visualization](/help/help.png?raw=true)\n\nThe JSON input for the image follows a simple structure. All paths are relative to\nthe JSON file's path.\n\n### Example\n\n```json\n{\n  \"title\": \"Test Application\",\n  \"icon\": \"test-app.icns\",\n  \"background\": \"test-background.png\",\n  \"contents\": [\n    { \"x\": 448, \"y\": 344, \"type\": \"link\", \"path\": \"/Applications\" },\n    { \"x\": 192, \"y\": 344, \"type\": \"file\", \"path\": \"TestApp.app\" }\n  ]\n}\n```\n\n### Specification\n\n+ `title` (string, required) - The title of the produced DMG, which will be shown when mounted\n+ `icon` (string, optional) - Path to your icon, which will be shown when mounted\n+ `background` (string, optional) - Path to your background\n+ `background-color` (string, optional) - Background color (accepts css colors)\n+ `icon-size` (number, optional) - Size of all the icons inside the DMG\n+ `window` (object, optional) - Window options\n    + `position` (object, optional) - Position when opened\n        + `x` (number, required) - X position relative to bottom of the screen\n        + `y` (number, required) - Y position relative to bottom of the screen\n    + `size` (object, optional) - Window size\n        + `width` (number, required) - Window width\n        + `height` (number, required) - Window height\n+ `format` (enum[string], optional) - Disk image format\n    + `UDRW` - UDIF read/write image\n    + `UDRO` - UDIF read-only image\n    + `UDCO` - UDIF ADC-compressed image\n    + `UDZO` - UDIF zlib-compressed image\n    + `UDBZ` - UDIF bzip2-compressed image (OS X 10.4+ only)\n    + `ULFO` - UDIF lzfse-compressed image (OS X 10.11+ only)\n+ `contents` (array[object], required) - This is the contents of your DMG.\n      + `x` (number, required) - X position relative to icon center\n      + `y` (number, required) - Y position relative to icon center\n      + `type` (enum[string], required)\n          + `link` - Creates a link to the specified target\n          + `file` - Adds a file to the DMG\n          + `position` - Positions a present file\n      + `path` (string, required) - Path to the file\n      + `name` (string, optional) - Name of the file within the DMG\n\n`0.1.x` used a different JSON format. This format is still supported but\ndeprecated, please update your json.\n\n### Retina background\n\nFinder can display retina backgrounds if packaged correctly into a `.tiff`\nfile. `appdmg` will do this for you automatically if it can find a file\nwith the same name as the background appended with `@2x`.\n\nE.g. if the json contains `\"background\": \"TestBkg.png\"` then add a file\nwith the name `TestBkg@2x.png` into the same folder.\n\n## API\n\nThe application can also be called from within\nanother javascript file, example:\n\n```javascript\n\nvar appdmg = require('appdmg');\nvar ee = appdmg({ source: 'test/appdmg.json', target: 'test.dmg' });\n\nee.on('progress', function (info) {\n\n  // info.current is the current step\n  // info.total is the total number of steps\n  // info.type is on of 'step-begin', 'step-end'\n\n  // 'step-begin'\n  // info.title is the title of the current step\n\n  // 'step-end'\n  // info.status is one of 'ok', 'skip', 'fail'\n\n});\n\nee.on('finish', function () {\n  // There now is a `test.dmg` file\n});\n\nee.on('error', function (err) {\n  // An error occurred\n});\n\n```\n\nYou can also pass in the specification directly instead of reading it from a file. `basepath` should be a path which will be used to resolve other paths in the specification.\n\n```javascript\nvar ee = appdmg({\n  target: 'test.dmg',\n  basepath: __dirname,\n  specification: {\n    \"title\": \"Test Title\",\n    // ...\n  }\n});\n```\n\n## OS Support\n\nCurrently the only supported os is Mac OS X.\n\nTrack the status of this here: https://github.com/LinusU/node-appdmg/issues/14\n\n## Hidden files\n\nBy default hidden files will show for users with `com.apple.finder AppleShowAllFiles`\nset to `TRUE`. This can be worked around by moving all hidden files outside the initial\nwindow size (using `\"type\": \"position\"`), this has the side-effect of enabling a scrollbar.\n\nFiles to usually move:\n\n- `.background`\n- `.DS_Store`\n- `.Trashes`\n- `.VolumeIcon.icns`\n\n## Alternatives\n\n* [create-dmg](https://github.com/andreyvit/create-dmg/blob/master/README.md), a Bash script\n* [dmgbuild](https://pypi.python.org/pypi/dmgbuild), a Python version\n","_attachments":{},"homepage":"https://github.com/LinusU/node-appdmg#readme","bugs":{"url":"https://github.com/LinusU/node-appdmg/issues"},"license":"MIT"}