Skip to content

Commit

Permalink
Add auto-updater to electron main process
Browse files Browse the repository at this point in the history
  - Import and use 'electron timber' as logger
  - Add package.lock.json to .gitgnore
  - Update versioning scripts and github repo
  • Loading branch information
davidsmorais committed Jan 14, 2019
1 parent 6159d18 commit 1b123fb
Show file tree
Hide file tree
Showing 5 changed files with 9,868 additions and 16,970 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
jsconfig.json
.vscode
package.lock.json
dist
github-page
app/node_modules
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
const electron = require('electron');
const path = require('path');
const Storage = require('electron-store');
const logger = require('electron-timber');



const { app, BrowserWindow } = electron;
Expand All @@ -13,8 +15,14 @@ require('electron-reload')(__dirname, {

// To avoid being garbage collected
let mainWindow;
require('update-electron-app')({
repo: 'https://github.com/Psybork/dyna.git',
});


app.on('ready', () => {
logger.log('Main Electron Logs');
logger.error('Main Electron Logs');
mainWindow = new BrowserWindow({
width: 1024,
height: 600,
Expand Down
Loading

0 comments on commit 1b123fb

Please sign in to comment.