Handle squirrel events for Windows installer

This commit is contained in:
Joel Collins 2019-02-28 11:47:58 +00:00
parent 13a4235e5a
commit e5c6c6b407
2 changed files with 74 additions and 0 deletions

7
app.js
View file

@ -1,3 +1,10 @@
//handle setupevents as quickly as possible
const setupEvents = require('./installers/setupEvents')
if (setupEvents.handleSquirrelEvent()) {
// squirrel event handled and app will exit in 1000ms, so don't do anything else
return;
}
const electron = require('electron')
const contextMenu = require('electron-context-menu');
const path = require('path')