{"action":"created","issue":{"url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/119","repository_url":"https://api.github.com/repos/loopline-systems/electron-builder","labels_url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/119/comments","events_url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/119/events","html_url":"https://github.com/loopline-systems/electron-builder/issues/119","id":128338064,"number":119,"title":"EPERM error when compiling on Windows","user":{"login":"eveningkid","id":7188494,"avatar_url":"https://avatars.githubusercontent.com/u/7188494?v=3","gravatar_id":"","url":"https://api.github.com/users/eveningkid","html_url":"https://github.com/eveningkid","followers_url":"https://api.github.com/users/eveningkid/followers","following_url":"https://api.github.com/users/eveningkid/following{/other_user}","gists_url":"https://api.github.com/users/eveningkid/gists{/gist_id}","starred_url":"https://api.github.com/users/eveningkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eveningkid/subscriptions","organizations_url":"https://api.github.com/users/eveningkid/orgs","repos_url":"https://api.github.com/users/eveningkid/repos","events_url":"https://api.github.com/users/eveningkid/events{/privacy}","received_events_url":"https://api.github.com/users/eveningkid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-23T16:49:57Z","updated_at":"2016-02-04T22:29:12Z","closed_at":"2016-01-31T14:57:37Z","body":"Hey everyone,\r\n\r\nFirst, thank you for having created this tool! I guess it helps a bunch of people out there! :smile: \r\n\r\nI'm trying to create an executable under __Windows__ but it seems I get an error everytime. Here it is:\r\n\r\n```\r\n- Running electron-builder 2.6.0\r\n- Starting creation of installer for ´win\r\nfs.js:932\r\n  return binding.unlink(pathModule._makeLong(path));\r\n                 ^\r\n\r\nError: EPERM: operation not permitted, unlink 'C:\\Users\\ARNAUD~1\\AppData\\Local\\Temp\\icon.ico'\r\n    at Error (native)\r\n    at Object.fs.unlinkSync (fs.js:932:18)\r\n    at copyFileSync (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\node_modules\\fs-extra\\lib\\copy-sync\\copy-file-sync.js:13:10)\r\n    at Object.copySync (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\node_modules\\fs-extra\\lib\\copy-sync\\copy-sync.js:31:7)\r\n    at _copyAssetsToTmpFolder (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\lib\\win.js:129:6)\r\n    at Object.WinBuilder.build (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\lib\\win.js:47:5)\r\n    at Object.Builder.build (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\index.js:80:42)\r\n    at Object.<anonymous> (C:\\Users\\****\\AppData\\Roaming\\npm\\node_modules\\electron-builder\\cli.js:36:9)\r\n    at Module._compile (module.js:435:26)\r\n    at Object.Module._extensions..js (module.js:442:10)\r\n```\r\n\r\nThe Node version is __4.2.2__ and npm's __3.5.3__.\r\n\r\nFinally, here are the two json configuration files:\r\n\r\n`package.json`:\r\n```json\r\n{\r\n  \"name\": \"mark\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"main.js\",\r\n  \"scripts\": {\r\n    \"start\": \"electron main.js\"\r\n  },\r\n  \"author\": \"eveningkid\",\r\n  \"devDependencies\": {\r\n    \"electron-prebuilt\": \"^0.36.0\"\r\n  }\r\n}\r\n```\r\n\r\nand `config.json`:\r\n```json\r\n{\r\n  \"win\" : {\r\n    \"title\" : \"Mark\",\r\n    \"version\" : \"1.0.0\",\r\n    \"publisher\": \"eveningkid\",\r\n    \"icon\" : \"assets/win/icon.png\",\r\n    \"verbosity\": 1\r\n  }\r\n}\r\n```\r\n\r\nThank you for your time, I hope we'll find out how to make it works!"},"comment":{"url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/comments/180080251","html_url":"https://github.com/loopline-systems/electron-builder/issues/119#issuecomment-180080251","issue_url":"https://api.github.com/repos/loopline-systems/electron-builder/issues/119","id":180080251,"user":{"login":"eveningkid","id":7188494,"avatar_url":"https://avatars.githubusercontent.com/u/7188494?v=3","gravatar_id":"","url":"https://api.github.com/users/eveningkid","html_url":"https://github.com/eveningkid","followers_url":"https://api.github.com/users/eveningkid/followers","following_url":"https://api.github.com/users/eveningkid/following{/other_user}","gists_url":"https://api.github.com/users/eveningkid/gists{/gist_id}","starred_url":"https://api.github.com/users/eveningkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eveningkid/subscriptions","organizations_url":"https://api.github.com/users/eveningkid/orgs","repos_url":"https://api.github.com/users/eveningkid/repos","events_url":"https://api.github.com/users/eveningkid/events{/privacy}","received_events_url":"https://api.github.com/users/eveningkid/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T22:29:12Z","updated_at":"2016-02-04T22:29:12Z","body":"Sorry for late reply, and thank you a lot for your answers!\r\n\r\nI've been trying out your suggestions and none of them worked for me... \r\n\r\n- @radibit: Working with the latest stable versions of both `node` and `npm` unfortunately didn't change a thing;\r\n- @stefanjudis: indeed, the dependency wasn't in my `package.json` but addind it didn't work. Its latest version is pasted right after this list;\r\n- I am using that execution command: `electron-builder ./app --platform=win --out=dist/win/64 --config=config.json`, and I've tried changing the output path, but same happens.\r\n\r\nAnd so here's the `package.json`:\r\n```json\r\n{\r\n  \"name\": \"mark\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"\",\r\n  \"main\": \"main.js\",\r\n  \"scripts\": {\r\n    \"start\": \"electron app/main.js\"\r\n  },\r\n  \"author\": \"eveningkid\",\r\n  \"license\": \"CC0-1.0\",\r\n  \"devDependencies\": {\r\n    \"codemirror\": \"^5.11.0\",\r\n    \"electron-localshortcut\": \"^0.6.0\",\r\n    \"electron-prebuilt\": \"^0.36.0\",\r\n    \"highlight.js\": \"^9.1.0\",\r\n    \"marked\": \"^0.3.5\",\r\n    \"electron-builder\": \"^2.6.0\"\r\n  }\r\n}\r\n```\r\n\r\nI really wonder too where the problem might come from... Thank you again for your time, I do appreciate it!"}}