Skip to content

Commit

Permalink
Auto-update setup part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Feb 19, 2017
1 parent 39a2e54 commit 860ddf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { app, BrowserWindow, Menu, shell } from 'electron';
const fs = require('fs');
const path = require('path');
const globals = require('./api/Globals');
const updater = require('electron-simple-updater');

let menu;
let template;
Expand Down Expand Up @@ -61,6 +62,8 @@ app.on('ready', async () => {
fs.mkdirSync(path.join(globals.directories.userdata, globals.directories.settings));
};

updater.init('https://raw.githubusercontent.com/nukeop/nuclear/master/updates.js');


mainWindow = new BrowserWindow({
show: false,
Expand Down
4 changes: 4 additions & 0 deletions updates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"linux-x64-prod": {},
"win32-x64-prod": {}
}

0 comments on commit 860ddf5

Please sign in to comment.