File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import {
10
10
createProtocol ,
11
11
installVueDevtools
12
12
} from 'vue-cli-plugin-electron-builder/lib'
13
+ import {
14
+ autoUpdater
15
+ } from 'electron-updater'
13
16
import path from 'path'
14
17
import hotkeys from "hotkeys-js" ;
15
18
const server = require ( './server' ) ;
@@ -70,6 +73,7 @@ function createWindow() {
70
73
createProtocol ( 'app' )
71
74
// Load the index.html when not in development
72
75
mainWindow . loadURL ( 'app://./index.html' )
76
+ autoUpdater . checkForUpdatesAndNotify ( )
73
77
}
74
78
75
79
mainWindow . on ( 'closed' , ( ) => {
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ module.exports = {
12
12
host : '0.0.0.0' ,
13
13
port : 3030
14
14
} ,
15
+ pluginOptions : {
16
+ electronBuilder : {
17
+ builderOptions : {
18
+ publish : [ 'github' ]
19
+ }
20
+ }
21
+ } ,
15
22
chainWebpack : config => {
16
23
config . resolve . alias
17
24
. set ( '@' , resolve ( 'src' ) )
You can’t perform that action at this time.
0 commit comments