Skip to content

Commit f2f3cc7

Browse files
committed
Enable publishing to GitHub & checking for updates
1 parent ac00154 commit f2f3cc7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/background.js

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import {
1010
createProtocol,
1111
installVueDevtools
1212
} from 'vue-cli-plugin-electron-builder/lib'
13+
import {
14+
autoUpdater
15+
} from 'electron-updater'
1316
import path from 'path'
1417
import hotkeys from "hotkeys-js";
1518
const server = require('./server');
@@ -70,6 +73,7 @@ function createWindow() {
7073
createProtocol('app')
7174
// Load the index.html when not in development
7275
mainWindow.loadURL('app://./index.html')
76+
autoUpdater.checkForUpdatesAndNotify()
7377
}
7478

7579
mainWindow.on('closed', () => {

vue.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ module.exports = {
1212
host: '0.0.0.0',
1313
port: 3030
1414
},
15+
pluginOptions: {
16+
electronBuilder: {
17+
builderOptions: {
18+
publish: ['github']
19+
}
20+
}
21+
},
1522
chainWebpack: config => {
1623
config.resolve.alias
1724
.set('@', resolve('src'))

0 commit comments

Comments
 (0)