From 6feb8e20e94bf8cf4f02a771dcbfd47c112619e3 Mon Sep 17 00:00:00 2001 From: vaverix Date: Thu, 30 Apr 2020 13:47:54 +0200 Subject: [PATCH] Update to version 0.0.3 --- package.json | 2 +- src/main/index.js | 20 +++++++++++++++++--- src/renderer/App.vue | 43 ++++++++++++++++++++++++++++++++++++------- 3 files changed, 54 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 5a78ce5..093a3fd 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vaverix-twitch-bot", "description": "Desktop application that allows you to log-in into multiple Twitch.tv channels at once. It also notifies you when someone mentions you in any channel you choose and has couple of other extra features.", "author": "vaverix", - "version": "0.0.2", + "version": "0.0.3", "license": "MIT", "scripts": { "dev": "electron-webpack dev", diff --git a/src/main/index.js b/src/main/index.js index a0209d2..079b755 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -41,6 +41,10 @@ const bttvEmoteCache = { urlTemplate: '//cdn.betterttv.net/emote/{{id}}/{{image}}', } +// autoupdater +autoUpdater.logger = require('electron-log') +autoUpdater.logger.transports.file.level = 'info' + // build menu const template = [ // { role: 'appMenu' } @@ -122,6 +126,17 @@ const template = [ : [{ role: 'close' }]), ], }, + { + label: 'Update', + submenu: [ + { + label: 'Check for update', + click: () => { + autoUpdater.checkForUpdatesAndNotify() + }, + }, + ], + }, { role: 'help', submenu: [ @@ -228,10 +243,9 @@ app.on('activate', () => { // create main BrowserWindow when electron is ready app.on('ready', () => { mainWindow = createMainWindow() - // autoupdater - autoUpdater.logger = require('electron-log') - autoUpdater.logger.transports.file.level = 'info' + // check for updates autoUpdater.checkForUpdatesAndNotify() + setInterval(autoUpdater.checkForUpdatesAndNotify, 600000) }) const getWindowPosition = () => { diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 3d4c60c..f64cc07 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -248,7 +248,11 @@
Options

-

-

-

-

-

-