Skip to content

Commit

Permalink
Trying to get autoupdate to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Booligoosh committed Jun 30, 2019
1 parent 59699e0 commit 8edf0c6
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 50 deletions.
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const storage = require('electron-json-storage');
const indexURL = process.env['MAKERLOG_MENUBAR_CONTEXT'] == 'DEV' ? `file://${__dirname}/index.html` : 'https://makerlog-menubar-app.netlify.com';
const timePickerURL = process.env['MAKERLOG_MENUBAR_CONTEXT'] == 'DEV' ? `file://${__dirname}/timepicker.html` : 'https://makerlog-menubar-app.netlify.com/timepicker';

require('update-electron-app')() // https://electronjs.org/docs/tutorial/updates#using-updateelectronjsorg
//require('update-electron-app')() // https://electronjs.org/docs/tutorial/updates#using-updateelectronjsorg

const { autoUpdater } = require('electron-updater') // https://www.electron.build/auto-update
autoUpdater.checkForUpdatesAndNotify()

global.fontSize = 16*1.5;

Expand Down
159 changes: 112 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "makerlog-menubar",
"version": "1.1.0",
"version": "1.1.1",
"description": "A menubar app for Makerlog",
"author": {
"name": "Ethan",
Expand All @@ -13,8 +13,8 @@
"dependencies": {
"dotenv": "^7.0.0",
"electron-json-storage": "^4.1.6",
"electron-updater": "^4.0.14",
"rws": "0.0.1",
"update-electron-app": "^1.3.0",
"yarn": "^1.15.2"
},
"devDependencies": {
Expand Down

0 comments on commit 8edf0c6

Please sign in to comment.