Skip to content

Commit

Permalink
Ready for the first run
Browse files Browse the repository at this point in the history
  • Loading branch information
megahertz committed Oct 14, 2016
1 parent 5e264f9 commit 198c515
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.idea
npm-debug.log*
npm-debug.log*
dist
5 changes: 4 additions & 1 deletion example/app/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
'use strict';

const {app, BrowserWindow} = require('electron');
const updater = require('electron-simple-updater');

let mainWindow;

updater.init();

let mainWindow;
app.on('ready', () => {
mainWindow = new BrowserWindow({
height: 600,
Expand Down
3 changes: 3 additions & 0 deletions example/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"engines": {
"node": ">=6.0"
},
"updater": {
"url": "https://raw.githubusercontent.com/megahertz/electron-simple-updater/master/example/updates.json"
},
"dependencies": {
"electron-simple-updater": "*"
}
Expand Down
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"appId": "megahertz.electron-simple-updater-example",
"mac": {
"category": "public.app-category.developer-tools"
}
},
"iconUrl": "http://electron.atom.io/images/favicon.ico"
},
"engines": {
"node": ">=6.0"
Expand Down
3 changes: 3 additions & 0 deletions example/updates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ class SimpleUpdater extends events.EventEmitter {
}
}

return new SimpleUpdater();
module.exports = new SimpleUpdater();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-simple-updater",
"version": "0.0.1",
"version": "0.0.3",
"description": "Simple way to enable update for the electron application",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 198c515

Please sign in to comment.