From a96f97af76986eabf8b2854bfb30f80c6ed224ac Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Wed, 27 Nov 2019 09:29:35 -0500 Subject: [PATCH] Skip update check if not supported (#166) --- src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.js b/src/app.js index 30c3ef4333..f7dd3b2d41 100644 --- a/src/app.js +++ b/src/app.js @@ -234,6 +234,9 @@ class Application { return; } const autoUpdater = updater.autoUpdater; + if (autoUpdater.app && autoUpdater.app.appUpdateConfigPath && !fs.existsSync(autoUpdater.app.appUpdateConfigPath)) { + return; + } const promise = autoUpdater.checkForUpdates(); if (promise) { promise.catch((error) => {