{"action":"created","issue":{"url":"https://api.github.com/repos/maxogden/electron-packager/issues/251","repository_url":"https://api.github.com/repos/maxogden/electron-packager","labels_url":"https://api.github.com/repos/maxogden/electron-packager/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/maxogden/electron-packager/issues/251/comments","events_url":"https://api.github.com/repos/maxogden/electron-packager/issues/251/events","html_url":"https://github.com/maxogden/electron-packager/pull/251","id":131261521,"number":251,"title":"Ability to set tmpdir to false to disable using temp directory","user":{"login":"develar","id":350686,"avatar_url":"https://avatars.githubusercontent.com/u/350686?v=3","gravatar_id":"","url":"https://api.github.com/users/develar","html_url":"https://github.com/develar","followers_url":"https://api.github.com/users/develar/followers","following_url":"https://api.github.com/users/develar/following{/other_user}","gists_url":"https://api.github.com/users/develar/gists{/gist_id}","starred_url":"https://api.github.com/users/develar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/develar/subscriptions","organizations_url":"https://api.github.com/users/develar/orgs","repos_url":"https://api.github.com/users/develar/repos","events_url":"https://api.github.com/users/develar/events{/privacy}","received_events_url":"https://api.github.com/users/develar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maxogden/electron-packager/labels/docs-needed","name":"docs-needed","color":"fbca04"},{"url":"https://api.github.com/repos/maxogden/electron-packager/labels/tests-needed","name":"tests-needed","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-04T06:52:29Z","updated_at":"2016-02-04T07:27:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/maxogden/electron-packager/pulls/251","html_url":"https://github.com/maxogden/electron-packager/pull/251","diff_url":"https://github.com/maxogden/electron-packager/pull/251.diff","patch_url":"https://github.com/maxogden/electron-packager/pull/251.patch"},"body":"I use electron-packager programmatically in [electron-complete-builder](https://github.com/develar/electron-complete-builder).\r\n\r\nCurrently, electron-packager cannot be used in parallel —my tests failed (I use [ava](https://github.com/sindresorhus/ava)). Because electron-packager uses one predefined temp directory instead of random — `path.join(opts.tmpdir || os.tmpdir(), 'electron-packager')`\r\n\r\nThis pull request doesn't fix it. Instead, I ask you ability to disable using of temp dir. And just use specified   `out` directly.\r\n\r\nWhy?\r\n* If you use programmatically, you maybe already manage temp dir. For example, temp dir and out dir management (overwrite check) is not required for `electron-complete-builder` — it is already implemented on my side. \r\n* In tests, you have to copy project directory to temp in any case (if you run tests in parallel), so, yet another temp directory just add complexity and slowdown."},"comment":{"url":"https://api.github.com/repos/maxogden/electron-packager/issues/comments/179687520","html_url":"https://github.com/maxogden/electron-packager/pull/251#issuecomment-179687520","issue_url":"https://api.github.com/repos/maxogden/electron-packager/issues/251","id":179687520,"user":{"login":"malept","id":11417,"avatar_url":"https://avatars.githubusercontent.com/u/11417?v=3","gravatar_id":"","url":"https://api.github.com/users/malept","html_url":"https://github.com/malept","followers_url":"https://api.github.com/users/malept/followers","following_url":"https://api.github.com/users/malept/following{/other_user}","gists_url":"https://api.github.com/users/malept/gists{/gist_id}","starred_url":"https://api.github.com/users/malept/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malept/subscriptions","organizations_url":"https://api.github.com/users/malept/orgs","repos_url":"https://api.github.com/users/malept/repos","events_url":"https://api.github.com/users/malept/events{/privacy}","received_events_url":"https://api.github.com/users/malept/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T07:27:08Z","updated_at":"2016-02-04T07:27:08Z","body":"I think I'm going to defer to one of the other maintainers as to whether this should be merged (pending the test/doc fixes)."}}