From c22a814b90e69588611420ec534bcef329b4fb23 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 6 Jun 2023 11:10:04 +0200 Subject: [PATCH] Electron: Only check for updates in production --- src/electron/window.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/electron/window.ts b/src/electron/window.ts index 85757a8ae..ffd4ff88b 100644 --- a/src/electron/window.ts +++ b/src/electron/window.ts @@ -118,7 +118,10 @@ export function createWindow(url?: string) { window.webContents.once('dom-ready', () => { window.show(); - setupAutoUpdates(window); + + if (process.env.APP_ENV === 'production') { + setupAutoUpdates(window); + } }); windows.add(window);