Skip to content

Commit

Permalink
feat(auto update): use electron-updater for auto updates
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Sep 4, 2019
1 parent 50bdcdc commit 26e9bed
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/main.development.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { app, BrowserWindow, Menu, shell } = require('electron')
const { autoUpdater } = require('electron-updater')
const { BackendProcess } = require('./backend')
const { ipcMain } = require('electron')

Expand Down Expand Up @@ -59,6 +60,7 @@ const setMenuItemEnabled = (menuItemIds, enabled) => {
app.on('ready', () =>
installExtensions()
.then(() => {
autoUpdater.checkForUpdatesAndNotify()
backendProcess = new BackendProcess()
backendProcess.maybeStartup()

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"@handsontable/react": "3.0.0",
"classnames": "2.2.6",
"electron-debug": "3.0.1",
"electron-updater": "4.1.2",
"font-awesome": "4.7.0",
"handsontable": "6.2.2",
"history": "4.9.0",
Expand Down
21 changes: 20 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@
dependencies:
redux "^3.6.0"

"@types/semver@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.0.1.tgz#a984b405c702fa5a7ec6abc56b37f2ba35ef5af6"
integrity sha512-ffCdcrEE5h8DqVxinQjo+2d1q+FV5z7iNtPofw3JsrltSoSVlOGaW0rY8XxtO9XukdTn8TaCGWmk2VFGhI70mg==

"@types/sinon@7.0.13":
version "7.0.13"
resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-7.0.13.tgz#ca039c23a9e27ebea53e0901ef928ea2a1a6d313"
Expand Down Expand Up @@ -2505,6 +2510,20 @@ electron-publish@21.0.16:
lazy-val "^1.0.4"
mime "^2.4.4"

electron-updater@4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-4.1.2.tgz#46a6e62cc8d0c7d935db7aff83207da2a21ff788"
integrity sha512-4Sk8IW0LfOilDz+WAB/gEDmX7+FUFRbKHGN1zGjehPilnd6H9cmjgBHK6Xzq/FLq/uOHGJ6GX/9tsF+jr7CvnA==
dependencies:
"@types/semver" "^6.0.1"
builder-util-runtime "8.3.0"
fs-extra "^8.1.0"
js-yaml "^3.13.1"
lazy-val "^1.0.4"
lodash.isequal "^4.5.0"
pako "^1.0.10"
semver "^6.2.0"

electron@5.0.6:
version "5.0.6"
resolved "https://registry.yarnpkg.com/electron/-/electron-5.0.6.tgz#e3ca4a58b5716fceef3fb64e1fd2222dd9c51de0"
Expand Down Expand Up @@ -5721,7 +5740,7 @@ package-json@^6.3.0:
registry-url "^5.0.0"
semver "^6.1.1"

pako@~1.0.5:
pako@^1.0.10, pako@~1.0.5:
version "1.0.10"
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732"

Expand Down

0 comments on commit 26e9bed

Please sign in to comment.