chore: Disable unsupported app update feature for linux

This commit is contained in:
Susmitha Girumala committed 2021-09-07 15:03:33 -04:00
1 parent c7c54daaad
commit 75ed3b816b
1 file changed
+6 -3
@@ -4,7 +4,7 @@ const https = require('https');
const semver = require('semver');
const { parse } = require('node-html-parser');
const { autoUpdater, dialog } = require('electron');
const { isWindows } = require('../helpers/platform.js');
const { isWindows, isLinux } = require('../helpers/platform.js');
const config = require('../../config/config.js');
let currentVersion = config.releaseVersion;
@@ -124,8 +124,11 @@ const displayDownloadPrompt = (version, url) => {
**/
module.exports = {
run: async ({ suppressNoUpdatePrompt } = {}) => {
// Do nothing on Windows - yet
if (isWindows()) return;
/**
* Disable app updater check for linux as update is unsupported.
* TODO: Enable for windows pending feature dev. Windows is supported.
*/
if (isWindows() || isLinux()) return;
let latestVersion;
if (debug) {