Skip to content

Commit

Permalink
Add auto updates to desktop builds. Increment official version to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cronoh committed Mar 8, 2018
1 parent de5ab7a commit cee9a54
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Binary file added build/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion main.js
@@ -1,4 +1,5 @@
const { app, BrowserWindow, shell, Menu } = require('electron');
const autoUpdater = require('electron-updater').autoUpdater;

let mainWindow;

Expand Down Expand Up @@ -44,7 +45,10 @@ function createWindow () {
}
}

app.on('ready', createWindow)
app.on('ready', () => {
autoUpdater.checkForUpdatesAndNotify();
createWindow();
})

// Quit when all windows are closed.
app.on('window-all-closed', function () {
Expand Down
15 changes: 11 additions & 4 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "NanoVault",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"description": "Wallet for interacting with Nano",
"author": "Andrew Steele",
Expand All @@ -15,7 +15,8 @@
"desktop": "electron main.js",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"dist-full": "electron-builder -wml --x64"
"dist-full": "electron-builder -wml --x64",
"publish": "build -wml --x64 -p always"
},
"private": true,
"dependencies": {
Expand All @@ -35,6 +36,7 @@
"core-js": "^2.4.1",
"crypto": "^1.0.1",
"crypto-js": "^3.1.9-1",
"electron-updater": "^2.21.0",
"ngx-clipboard": "^9.1.2",
"qrcode": "^1.2.0",
"rxjs": "^5.5.2",
Expand Down Expand Up @@ -68,7 +70,7 @@
},
"build": {
"appId": "com.electron.nanovault",
"buildVersion": "1.0.0",
"buildVersion": "1.0.1",
"productName": "NanoVault",
"copyright": "Copyright © 2018 Andrew Steele",
"directories": {
Expand All @@ -80,6 +82,11 @@
},
"linux": {
"target": "AppImage"
}
},
"publish": [{
"provider": "github",
"owner": "cronoh",
"repo": "nanovault"
}]
}
}

0 comments on commit cee9a54

Please sign in to comment.