{"action":"opened","issue":{"url":"https://api.github.com/repos/LinusU/node-appdmg/issues/63","labels_url":"https://api.github.com/repos/LinusU/node-appdmg/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/LinusU/node-appdmg/issues/63/comments","events_url":"https://api.github.com/repos/LinusU/node-appdmg/issues/63/events","html_url":"https://github.com/LinusU/node-appdmg/issues/63","id":88791163,"number":63,"title":"hdiutil exit code 1, tmp file not tracked & destroyed","user":{"login":"krainboltgreene","id":334809,"avatar_url":"https://avatars.githubusercontent.com/u/334809?v=3","gravatar_id":"","url":"https://api.github.com/users/krainboltgreene","html_url":"https://github.com/krainboltgreene","followers_url":"https://api.github.com/users/krainboltgreene/followers","following_url":"https://api.github.com/users/krainboltgreene/following{/other_user}","gists_url":"https://api.github.com/users/krainboltgreene/gists{/gist_id}","starred_url":"https://api.github.com/users/krainboltgreene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krainboltgreene/subscriptions","organizations_url":"https://api.github.com/users/krainboltgreene/orgs","repos_url":"https://api.github.com/users/krainboltgreene/repos","events_url":"https://api.github.com/users/krainboltgreene/events{/privacy}","received_events_url":"https://api.github.com/users/krainboltgreene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T17:34:08Z","updated_at":"2015-06-16T17:34:08Z","closed_at":null,"body":"So this has come up in #47 and #61 but was unresolved realistically. Restarting didn't solve my problem so I dug deeper. I attempted to recreate the command sent to `hdiutil` and this happened:\r\n\r\n```\r\n▶ hdiutil create /var/folders/w2/xf402_nd0pd395xy_d7276yh0000gn/T/115516-3052-1mykps3.dmg -fs FS+ -size 183.5m -volname Lowbrow -debug -verbose\r\ncreate-content-spec:\r\n\tnbi-spec:\r\n\t\tvolname: Lowbrow\r\n\t\tfilesystem: FS+\r\nverbose: true\r\ndebug: true\r\nagent: hdiutil\r\ncreate-target-spec:\r\n\turl: file:///var/folders/w2/xf402_nd0pd395xy_d7276yh0000gn/T/115516-3052-1mykps3.dmg\r\n\tsectors: 375808\r\n\timage-options:\r\n...\r\nDIHLDiskImageCreate() returned -48\r\nhdiutil: create: returning -48\r\nhdiutil: create failed - File exists\r\n```\r\n\r\nI believe one of the issues at play here is that node-appdmg doesn't track tempfiles as suggested here: https://github.com/bruce/node-temp#want-cleanup-make-sure-you-ask-for-it"}}