{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6345","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6345/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6345/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6345/events","html_url":"https://github.com/electron/electron/issues/6345","id":163717374,"number":6345,"title":"Auto-updater not relaunching/updating","user":{"login":"ghego1","id":4340360,"avatar_url":"https://avatars.githubusercontent.com/u/4340360?v=3","gravatar_id":"","url":"https://api.github.com/users/ghego1","html_url":"https://github.com/ghego1","followers_url":"https://api.github.com/users/ghego1/followers","following_url":"https://api.github.com/users/ghego1/following{/other_user}","gists_url":"https://api.github.com/users/ghego1/gists{/gist_id}","starred_url":"https://api.github.com/users/ghego1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghego1/subscriptions","organizations_url":"https://api.github.com/users/ghego1/orgs","repos_url":"https://api.github.com/users/ghego1/repos","events_url":"https://api.github.com/users/ghego1/events{/privacy}","received_events_url":"https://api.github.com/users/ghego1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-04T17:31:39Z","updated_at":"2016-08-26T09:28:29Z","closed_at":null,"body":"* Electron version: 1.2.5\r\n* Operating system: MacOSX 10.11.5\r\n\r\nI had implemented the autoupdate functions correctly, and I was using them with Electron 0.37.8.\r\n\r\nThen I bumped up to 1.2.5 and `var autoUpdater = require('auto-updater');` was not working anymore. So I switched to `var autoUpdater = electron.autoUpdater;`.\r\n\r\nThen I tried to see if everything was working, but unfortunately it isn't.\r\n\r\nThe app does download the new zip file, and does quit after the download has finished, but it never relaunches and it does not install the update.\r\n\r\nTo Update I tried several solutions, none of which work.\r\n\r\n    autoUpdater.addListener(\"update-downloaded\", function (event, releaseNotes, releaseName, releaseDate, updateURL, quitAndUpdate) {\r\n\r\n            // simple call to quitAndInstall method - does not relaunch nor update\r\n            autoUpdater.quitAndInstall();\r\n\r\n            // call to function passed by event listener - does not relaunch nor update\r\n            quitAndUpdate();\r\n            \r\n            /*\r\n            // Same, but with confirm dialog - does not relaunch nor update\r\n            var options = {\r\n                type: 'info',\r\n                buttons: ['Restart', 'Later'],\r\n                title: \"Enoron\",\r\n                message: 'The new version has been downloaded. Restart the application to apply the updates.',\r\n                detail: releaseName + \"\\n\\n\" + releaseNotes\r\n            };\r\n            dialog.showMessageBox(options, function(response) {\r\n                if (response == 0) {\r\n                    autoUpdater.quitAndInstall();\r\n                }\r\n            });\r\n            */\r\n        });\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/242678743","html_url":"https://github.com/electron/electron/issues/6345#issuecomment-242678743","issue_url":"https://api.github.com/repos/electron/electron/issues/6345","id":242678743,"user":{"login":"cumajkeee","id":1834053,"avatar_url":"https://avatars.githubusercontent.com/u/1834053?v=3","gravatar_id":"","url":"https://api.github.com/users/cumajkeee","html_url":"https://github.com/cumajkeee","followers_url":"https://api.github.com/users/cumajkeee/followers","following_url":"https://api.github.com/users/cumajkeee/following{/other_user}","gists_url":"https://api.github.com/users/cumajkeee/gists{/gist_id}","starred_url":"https://api.github.com/users/cumajkeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cumajkeee/subscriptions","organizations_url":"https://api.github.com/users/cumajkeee/orgs","repos_url":"https://api.github.com/users/cumajkeee/repos","events_url":"https://api.github.com/users/cumajkeee/events{/privacy}","received_events_url":"https://api.github.com/users/cumajkeee/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T09:28:28Z","updated_at":"2016-08-26T09:28:28Z","body":"Did anybody can confirm than problem solved in 1.3.3/4?\r\n\r\nIn 1.2.7 can confirm error in ShipIt/stderr.log with \"File not found\", and all process of auto update of application can finish with 3 results:\r\n\r\n1. Success: updated and app restarted\r\n2. Fail: app not updated but restarted (rear, but reproducible, all process of auto update passed well, except error with \"File not found\" which is not affect, as I understand, update process) \r\n3. Fail: app not updated and doesn't restarted (found once, not sure is it updater issue)"}}
{"actor":{"display_login":"cumajkeee"}}