Skip to content

Commit

Permalink
tmp fix for autoupdater
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaco committed Oct 19, 2018
1 parent 433f84f commit 90a34e0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
23 changes: 23 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"appId": "com.github.JLueke.electronupdaterexample",
"mac": {
"category": "your.app.category.type",
"target": [
"zip",
"dmg"
]
},
"win": {
"target": [
"nsis"
]
},
"nsis": {
"oneClick": false,
"packElevateHelper": true,
"perMachine": true,
"guid": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true
}
}
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ autoUpdater.on('update-downloaded', (info) => {
buttons: ['Sure', 'No']
}, (buttonIndex) => {
if (buttonIndex === 0) {
autoUpdater.quitAndInstall();

win.removeAllListeners();
app.removeAllListeners('window-all-closed');
autoUpdater.quitAndInstall();
}
});
});
Expand Down
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 3 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-updater-example",
"productName": "Electron updater example",
"version": "0.8.8",
"version": "0.8.11",
"main": "main.js",
"description": "electron-updater example project",
"author": "Matt Haggard",
Expand All @@ -14,24 +14,7 @@
},
"dependencies": {
"electron-log": "^1.3.0",
"electron-updater": "^3.1.2"
},
"build": {
"appId": "com.github.JLueke.electronupdaterexample",
"mac": {
"category": "your.app.category.type",
"target": [
"zip",
"dmg"
]
},
"nsis": {
"oneClick": false,
"packElevateHelper": true,
"perMachine": true,
"guid": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true
}
"electron-updater": "^3.1.2",
"electron-updater-bin": "git+https://github.com/WesterosCraftCode/electron-updater-bin.git"
}
}

0 comments on commit 90a34e0

Please sign in to comment.