fix(update): don't check for update if the app is installed with SNAP or Flatpak

This commit is contained in:
MasterAcnolo
2026-09-27 16:23:28 +02:00
parent d11c0f9839
commit 99b7164ff8

View File

@@ -122,6 +122,7 @@ function initAutoUpdater(mainWindow) {
* Separated from init for reusability and testability.
*/
async function checkForUpdates() {
if (process.env.SNAP || process.env.FLATPAK_ID) return;
if (!require("electron").app.isPackaged) return;
try {