This repository was archived by the owner on Dec 5, 2022. It is now read-only.
File tree 4 files changed +1124
-1363
lines changed
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
+
1
5
const path = require ( 'path' )
2
6
const glob = require ( 'glob' )
3
7
const { app, BrowserWindow} = require ( 'electron' )
4
- const autoUpdater = require ( './auto-updater' )
5
8
6
9
const debug = / - - d e b u g / . test ( process . argv [ 2 ] )
7
10
@@ -44,7 +47,6 @@ function initialize () {
44
47
45
48
app . on ( 'ready' , ( ) => {
46
49
createWindow ( )
47
- autoUpdater . initialize ( )
48
50
} )
49
51
50
52
app . on ( 'window-all-closed' , ( ) => {
@@ -82,21 +84,6 @@ function makeSingleInstance () {
82
84
function loadDemos ( ) {
83
85
const files = glob . sync ( path . join ( __dirname , 'main-process/**/*.js' ) )
84
86
files . forEach ( ( file ) => { require ( file ) } )
85
- autoUpdater . updateMenu ( )
86
87
}
87
88
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