Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit cd35077

Browse files
author
icymind
committed
add electron-updater as dependency
1 parent fc2ceba commit cd35077

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
22

3+
import { autoUpdater } from 'electron-updater'
4+
35
const { app, BrowserWindow, Menu } = require('electron')
46

57
let win
@@ -144,8 +146,7 @@ process.on('uncaughtException', function (err) {
144146
* https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-electron-builder.html#auto-updating
145147
*/
146148

147-
/*
148-
import { autoUpdater } from 'electron-updater'
149+
// import { autoUpdater } from 'electron-updater'
149150

150151
autoUpdater.on('update-downloaded', () => {
151152
autoUpdater.quitAndInstall()
@@ -154,4 +155,3 @@ autoUpdater.on('update-downloaded', () => {
154155
app.on('ready', () => {
155156
if (process.env.NODE_ENV === 'production') autoUpdater.checkForUpdates()
156157
})
157-
*/

0 commit comments

Comments
 (0)