Uninstall handlers on Windows uninstall/npm run clean

This commit is contained in:
Feross Aboukhadijeh
2016-04-04 20:27:48 -07:00
parent 822e4ba148
commit a879492529
5 changed files with 125 additions and 12 deletions

View File

@@ -11,6 +11,8 @@ var pathExists = require('path-exists')
var app = electron.app
var handlers = require('./handlers')
var exeName = path.basename(process.execPath)
var updateDotExe = path.join(process.execPath, '..', '..', 'Update.exe')
@@ -41,6 +43,10 @@ function handleEvent (cmd) {
removeShortcuts(function () {
app.quit()
})
// Uninstall .torrent file and magnet link handlers
handlers.uninstall()
return true
}