From b8897e01932d153c350bfde930a76117c4907d6d Mon Sep 17 00:00:00 2001 From: Jonas Hermsmeier Date: Fri, 11 May 2018 16:36:14 +0200 Subject: [PATCH] minifix(gui): Don't check for updates when in resin This disabled Etcher checking for updates & showing update notifications if running under resinOS with update locks enabled Change-Type: patch --- lib/gui/app/components/update-notifier.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gui/app/components/update-notifier.js b/lib/gui/app/components/update-notifier.js index 8fc7dd7a..e23c4428 100644 --- a/lib/gui/app/components/update-notifier.js +++ b/lib/gui/app/components/update-notifier.js @@ -62,6 +62,10 @@ const currentWindow = electron.remote.getCurrentWindow() * } */ exports.shouldCheckForUpdates = (options) => { + if (process.env.ELECTRON_RESIN_UPDATE_LOCK) { + return false + } + _.defaults(options, { lastSleptUpdateNotifierVersion: options.currentVersion })