Skip to content

Commit

Permalink
check updates before run
Browse files Browse the repository at this point in the history
  • Loading branch information
talyguryn committed Jun 15, 2021
1 parent 468aa09 commit a7e6713
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssh-quick-connect",
"version": "1.0.2",
"version": "1.0.3",
"description": "SSH login helper tray app for macOS",
"main": "src/index.js",
"license": "MIT",
Expand Down
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ app.on('ready', async () => {
try {
log.info('App is ready');

/**
* Do not try to check for updates in dev mode
*/
if (!require('electron-is-dev')) {
require('./utils/autoupdater');
}

/**
* Prepare tray icon
*/
Expand All @@ -48,13 +55,6 @@ app.on('ready', async () => {
setInterval(async () => {
tray.setContextMenu(await appMenu.getMenu());
}, 60000)

/**
* Do not try to check for updates in dev mode
*/
if (!require('electron-is-dev')) {
require('./utils/autoupdater');
}
} catch (error) {
log.error(error);

Expand Down
2 changes: 1 addition & 1 deletion src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = require('./actions/config');
const path = require('path');

const NAME = 'SSH Quick Connect';
const VERSION = '1.0.2';
const VERSION = '1.0.3';

const checkSite = require('./utils/checkSite');

Expand Down

0 comments on commit a7e6713

Please sign in to comment.