@@ -5,7 +5,7 @@ const app = electron.app;
5
5
const dialog = electron . dialog ;
6
6
const ipc = electron . ipcMain ;
7
7
const BrowserWindow = electron . BrowserWindow ;
8
- const autoUpdater = electron . autoUpdater ;
8
+ // const autoUpdater = electron.autoUpdater;
9
9
const path = require ( 'path' ) ;
10
10
11
11
// Keep a global reference of the window object, if you don't, the window will
@@ -46,23 +46,32 @@ function createWindow() {
46
46
mainWindow = null ;
47
47
} ) ;
48
48
49
- checkUpdate ( ) ;
49
+ // checkUpdate();
50
50
51
51
}
52
52
53
- function checkUpdate ( ) {
54
- let updateFeed = '' ;
55
- let appVersion = '1.3.2' ;
56
- autoUpdater . setFeedURL ( updateFeed + '?v=' + appVersion ) ;
57
-
58
- autoUpdater . on ( 'checking-for-update' , function ( ) {
59
- console . log ( 'checking-for-update' ) ;
60
- } ) ;
61
-
62
- autoUpdater . on ( 'update-not-available' , function ( ) {
63
- console . log ( 'update-not-available' ) ;
64
- } ) ;
65
- }
53
+ // function checkUpdate(){
54
+ // let updateFeed = 'http://localhost:3000/updates';
55
+ // let appVersion = '1.3.2';
56
+ // autoUpdater.setFeedURL(updateFeed + '?v=' + appVersion);
57
+ //
58
+ // autoUpdater.on('checking-for-update', function(){
59
+ // console.log('checking-for-update');
60
+ // });
61
+ //
62
+ // autoUpdater.on('update-available', function(){
63
+ // console.log('update-available');
64
+ // });
65
+ //
66
+ // autoUpdater.on('update-not-available', function(){
67
+ // console.log('update-not-available');
68
+ // });
69
+ //
70
+ // autoUpdater.on('update-downloaded', function(){
71
+ // console.log('update-downloaded');
72
+ // autoUpdater.quitAndInstall();
73
+ // });
74
+ // }
66
75
67
76
68
77
// This method will be called when Electron has finished
0 commit comments