Windows: create desktop/start menu shortcuts on install/update

This commit is contained in:
Feross Aboukhadijeh
2016-03-25 01:39:44 -07:00
parent 78f08487c4
commit 8bba565609
3 changed files with 30 additions and 22 deletions

View File

@@ -16,10 +16,9 @@ var shouldQuit = false
var argv = sliceArgv(process.argv)
if (process.platform === 'win32') {
shouldQuit = squirrelWin32.handleArgv(argv[0])
// Remove any --squirrel-xxxx arguments
argv.shift()
shouldQuit = squirrelWin32.handleEvent(argv[0])
argv.shift() // Remove any --squirrel-xxxx arguments
// app.setAppUserModelId('com.squirrel.WebTorrent.WebTorrent')
}
if (!shouldQuit) {