This repository was archived by the owner on Dec 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +1124
-1363
lines changed Expand file tree Collapse file tree 4 files changed +1124
-1363
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ require ( 'update-electron-app' ) ( {
2+ logger : require ( 'electron-log' )
3+ } )
4+
15const path = require ( 'path' )
26const glob = require ( 'glob' )
37const { app, BrowserWindow} = require ( 'electron' )
4- const autoUpdater = require ( './auto-updater' )
58
69const debug = / - - d e b u g / . test ( process . argv [ 2 ] )
710
@@ -44,7 +47,6 @@ function initialize () {
4447
4548 app . on ( 'ready' , ( ) => {
4649 createWindow ( )
47- autoUpdater . initialize ( )
4850 } )
4951
5052 app . on ( 'window-all-closed' , ( ) => {
@@ -82,21 +84,6 @@ function makeSingleInstance () {
8284function loadDemos ( ) {
8385 const files = glob . sync ( path . join ( __dirname , 'main-process/**/*.js' ) )
8486 files . forEach ( ( file ) => { require ( file ) } )
85- autoUpdater . updateMenu ( )
8687}
8788
88- // Handle Squirrel on Windows startup events
89- switch ( process . argv [ 1 ] ) {
90- case '--squirrel-install' :
91- autoUpdater . createShortcut ( ( ) => { app . quit ( ) } )
92- break
93- case '--squirrel-uninstall' :
94- autoUpdater . removeShortcut ( ( ) => { app . quit ( ) } )
95- break
96- case '--squirrel-obsolete' :
97- case '--squirrel-updated' :
98- app . quit ( )
99- break
100- default :
101- initialize ( )
102- }
89+ initialize ( )
You can’t perform that action at this time.
0 commit comments