Skip to content

Commit

Permalink
final changes to get auto updating working on both linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Cullen committed Sep 13, 2019
1 parent f2e6ee7 commit 684850a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ autoUpdater.on('checking-for-update', () => {
autoUpdater.on('update-available', info => {
sendStatusToWindow('Update available.')

console.log(info)

const payloadString = JSON.stringify({
version: info.version,
os: process.platform,
Expand All @@ -363,9 +365,13 @@ autoUpdater.on('update-available', info => {
})
autoUpdater.on('update-not-available', info => {
sendStatusToWindow('Update not available.')
const payloadString = JSON.stringify({
version: info.version,
os: process.platform,
})
updaterWindow.webContents.send('updaterMessage', {
type: 'availableVersionMessage',
payload: info.version,
payload: payloadString,
})
})
autoUpdater.on('error', err => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tile-viewer",
"version": "v0.1.4-beta.3",
"version": "v0.1.5-beta",
"description": "Allow easy selection of optical satellite imagery, integration with batch downloader and atmospheric correction.",
"license": "MIT",
"private": false,
Expand Down

0 comments on commit 684850a

Please sign in to comment.