{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3000","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3000/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3000/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3000/events","html_url":"https://github.com/electron-userland/electron-builder/issues/3000","id":330750119,"node_id":"MDU6SXNzdWUzMzA3NTAxMTk=","number":3000,"title":"Windows: auto update should remove binary after install/relaunch","user":{"login":"CydeSwype","id":626391,"node_id":"MDQ6VXNlcjYyNjM5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/626391?v=4","gravatar_id":"","url":"https://api.github.com/users/CydeSwype","html_url":"https://github.com/CydeSwype","followers_url":"https://api.github.com/users/CydeSwype/followers","following_url":"https://api.github.com/users/CydeSwype/following{/other_user}","gists_url":"https://api.github.com/users/CydeSwype/gists{/gist_id}","starred_url":"https://api.github.com/users/CydeSwype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CydeSwype/subscriptions","organizations_url":"https://api.github.com/users/CydeSwype/orgs","repos_url":"https://api.github.com/users/CydeSwype/repos","events_url":"https://api.github.com/users/CydeSwype/events{/privacy}","received_events_url":"https://api.github.com/users/CydeSwype/received_events","type":"User","site_admin":false},"labels":[{"id":214243367,"node_id":"MDU6TGFiZWwyMTQyNDMzNjc=","url":"https://api.github.com/repos/electron-userland/electron-builder/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-08T17:57:12Z","updated_at":"2018-07-31T16:12:05Z","closed_at":"2018-06-27T09:22:17Z","author_association":"CONTRIBUTOR","body":"<!-- Which version of electron-builder are you using? -->\r\n<!-- Please always try to use latest version before report. -->\r\n* **Version**:  19.48.3\r\n\r\n<!-- Which version of electron-updater are you using (if applicable)? -->\r\n\r\n<!-- What target are you building for? -->\r\n* **Target**:  Win32\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n<!-- If you want, you can donate to increase issue priority (https://www.electron.build/donate) -->\r\nThis problem may be specific to NSIS.\r\n\r\nAfter performing an auto-update, the AppData/Roaming directory contains the .exe that was used to perform the update.  After each version update, a new binary continues to live there, increasing the \"bloat\" of the application significantly.  There are methods for an app to \"clean up\" after an update and delete these files, but this seems like it should be default behavior for the updater.\r\n\r\n![image 1](https://user-images.githubusercontent.com/626391/41173015-5942bcfc-6b0a-11e8-9271-c8118c0681b4.png)\r\n\r\nHere's my package.json (with some redactions):\r\n\r\n```\r\n{\r\n  \"name\": \"wildlink\",\r\n  \"productName\": \"Wildlink\",\r\n  \"description\": \"foo\",\r\n  \"version\": \"1.2.8\",\r\n  \"main\": \"./app/main.js\",\r\n  \"license\": \"UNLICENSED\",\r\n  \"author\": \"Wildfire Systems, Inc. <info@wildlink.me>\",\r\n  \"homepage\": \"https://wildlink.me\",\r\n  \"scripts\": {\r\n    \"start\": \"electron . --enable-logging\",\r\n    \"testmacpartner\": \"electron . --enabled-logging -channel=$channelID\",\r\n    \"dev\": \"NODE_ENV='development' ELECTRON_ENABLE_STACK_DUMPING=true ELECTRON_ENABLE_LOGGING=true npm run start\",\r\n    \"postinstall\": \"electron-builder install-app-deps\",\r\n    \"pack\": \"build --dir\",\r\n    \"build:linux\": \"build --linux\",\r\n    \"build:win\": \"build --win\",\r\n    \"build:mac\": \"build --dmg\",\r\n    \"build:all\": \"build --linux --win\",\r\n    \"dist\": \"build\"\r\n  },\r\n  \"build\": {\r\n    \"appId\": \"wildlink\",\r\n    \"publish\": [\r\n      {\r\n        \"provider\": \"generic\",\r\n        \"url\": \"https://wildlink.me/desktop-update\"\r\n      }\r\n    ],\r\n    \"dmg\": {\r\n      \"internetEnabled\": true,\r\n      \"background\": \"./build/background.png\",\r\n      \"iconSize\": 85,\r\n      \"window\": {\r\n        \"width\": 417,\r\n        \"height\": 213\r\n      },\r\n      \"contents\": [\r\n        {\r\n          \"x\": 106,\r\n          \"y\": 84\r\n        },\r\n        {\r\n          \"x\": 307,\r\n          \"y\": 84,\r\n          \"type\": \"link\",\r\n          \"path\": \"/Applications\"\r\n        }\r\n      ]\r\n    },\r\n    \"linux\": {\r\n      \"target\": [\r\n        \"deb\"\r\n      ],\r\n      \"category\": \"Utility\"\r\n    },\r\n    \"win\": {\r\n      \"target\": {\r\n        \"target\": \"NSIS\",\r\n        \"arch\": [\r\n          \"ia32\"\r\n        ]\r\n      },\r\n      \"icon\": \"build/icon.ico\"\r\n    }\r\n  },\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"xxx\"\r\n  },\r\n  \"bugs\": {\r\n    \"url\": \"xxx\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"electron\": \"^1.8.4\",\r\n    \"electron-builder\": \"19.48.3\",\r\n    \"electron-packager\": \"^7.3.0\",\r\n    \"electron-reload\": \"^1.2.2\",\r\n    \"electron-toolkit\": \"^1.0.24\",\r\n    \"electron-winstaller\": \"^2.6.4\"\r\n  },\r\n  \"dependencies\": {\r\n    \"chart.js\": \"^2.7.2\",\r\n    \"crypto-js\": \"^3.1.9-1\",\r\n    \"electron-contextmenu-middleware\": \"^1.0.3\",\r\n    \"electron-input-menu\": \"^2.1.0\",\r\n    \"electron-json-storage\": \"^4.1.0\",\r\n    \"electron-log\": \"^2.2.14\",\r\n    \"electron-push-receiver\": \"^1.2.4\",\r\n    \"electron-updater\": \"2.21.6\",\r\n    \"first-run\": \"1.2.0\",\r\n    \"localforage\": \"^1.7.1\",\r\n    \"path\": \"^0.12.7\",\r\n    \"request\": \"^2.85.0\",\r\n    \"universal-analytics\": \"^0.4.16\",\r\n    \"utf8\": \"^2.1.2\",\r\n    \"winreg\": \"^1.2.4\"\r\n  }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/409278064","html_url":"https://github.com/electron-userland/electron-builder/issues/3000#issuecomment-409278064","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3000","id":409278064,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTI3ODA2NA==","user":{"login":"CydeSwype","id":626391,"node_id":"MDQ6VXNlcjYyNjM5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/626391?v=4","gravatar_id":"","url":"https://api.github.com/users/CydeSwype","html_url":"https://github.com/CydeSwype","followers_url":"https://api.github.com/users/CydeSwype/followers","following_url":"https://api.github.com/users/CydeSwype/following{/other_user}","gists_url":"https://api.github.com/users/CydeSwype/gists{/gist_id}","starred_url":"https://api.github.com/users/CydeSwype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CydeSwype/subscriptions","organizations_url":"https://api.github.com/users/CydeSwype/orgs","repos_url":"https://api.github.com/users/CydeSwype/repos","events_url":"https://api.github.com/users/CydeSwype/events{/privacy}","received_events_url":"https://api.github.com/users/CydeSwype/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T16:12:05Z","updated_at":"2018-07-31T16:12:05Z","author_association":"CONTRIBUTOR","body":"@develar thank you for this explanation!  I now understand how this new feature works."}}
{"actor":{"display_login":"CydeSwype"}}