Skip to content

Commit

Permalink
Only install the desktop shortcut on install, not on every update Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 18, 2016
1 parent afbb830 commit fd3ffe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/squirrel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const handleStartupEvent = () => {

switch (squirrelCommand) {
case '--squirrel-install':
case '--squirrel-updated':

// Optionally do things such as:
//
// - Install desktop and start menu shortcuts
Expand All @@ -30,6 +28,9 @@ const handleStartupEvent = () => {
// explorer context menus
run(['--createShortcut=' + target + ''], app.quit);
return true;
case '--squirrel-updated':
app.quit();
return true;
case '--squirrel-uninstall':
// Undo anything you did in the --squirrel-install and
// --squirrel-updated handlers
Expand Down

0 comments on commit fd3ffe1

Please sign in to comment.