Skip to content

Commit

Permalink
Configured auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
akshitkrnagpal authored and saghul committed Jul 18, 2018
1 parent 9dca49f commit 5b66dd5
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 20 deletions.
7 changes: 7 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {
shell
} = require('electron');
const isDev = require('electron-is-dev');
const { autoUpdater } = require('electron-updater');
const windowStateKeeper = require('electron-window-state');
const {
setupAlwaysOnTopMain,
Expand All @@ -16,6 +17,9 @@ const {
const path = require('path');
const URL = require('url');

autoUpdater.logger = require('electron-log');
autoUpdater.logger.transports.file.level = 'info';

/**
* Load debug utilities (don't open the DevTools window by default though).
*/
Expand Down Expand Up @@ -155,6 +159,9 @@ function createJitsiMeetWindow() {
Menu.setApplicationMenu(null);
}

// Check for Updates.
autoUpdater.checkForUpdatesAndNotify();

// Load the previous state with fallback to defaults
const jitsiMeetWindowState = windowStateKeeper({
defaultWidth: 800,
Expand Down
100 changes: 82 additions & 18 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": {
"appId": "org.jitsi.jitsi-meet",
"productName": "Jitsi Meet",
"generateUpdatesFilesForAllChannels": true,
"files": [
"**/*",
"resources",
Expand All @@ -25,8 +26,7 @@
],
"mac": {
"artifactName": "jitsi-meet-${version}.${ext}",
"category": "public.app-category.video",
"target": "dmg"
"category": "public.app-category.video"
},
"linux": {
"artifactName": "jitsi-meet-${version}-${arch}.${ext}",
Expand Down Expand Up @@ -87,6 +87,8 @@
"@atlaskit/toggle": "4.0.3",
"electron-debug": "2.0.0",
"electron-is-dev": "0.3.0",
"electron-log": "2.2.16",
"electron-updater": "3.0.1",
"electron-window-state": "4.1.1",
"history": "4.7.2",
"jitsi-meet-electron-utils": "github:jitsi/jitsi-meet-electron-utils#1972c3bf0884ace68eb496894dabae593d6dbf49",
Expand Down

0 comments on commit 5b66dd5

Please sign in to comment.