From f7f53ae5e592cf1105bd8fb6ea6d9d8a8f72be6a Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Wed, 25 Dec 2024 22:15:10 +0530 Subject: [PATCH] Fix auto-update condition and bump build version to 25.12.26; update app version to 2.15.0 --- electron/main-window.ts | 6 +++++- mas.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/electron/main-window.ts b/electron/main-window.ts index 24e4826..176b3ac 100644 --- a/electron/main-window.ts +++ b/electron/main-window.ts @@ -57,7 +57,11 @@ const createMainWindow = () => { mainWindow.webContents .executeJavaScript('localStorage.getItem("autoUpdate");', true) .then((lastSaved: string | null) => { - if (lastSaved !== null && lastSaved === "true") { + if ( + lastSaved === null || + lastSaved === undefined || + lastSaved === "true" + ) { autoUpdater.checkForUpdates(); } else { console.log("🚀 Auto Update is disabled"); diff --git a/mas.json b/mas.json index 3fdb7d5..4be0b0c 100644 --- a/mas.json +++ b/mas.json @@ -2,7 +2,7 @@ "productName": "Upscayl", "appId": "org.upscayl.Upscayl", "afterSign": "./notarize.js", - "buildVersion": "25.12.25", + "buildVersion": "25.12.26", "asar": true, "asarUnpack": ["**/node_modules/sharp/**/*", "**/node_modules/@img/**/*"], "extraFiles": [ diff --git a/package.json b/package.json index a451669..f339a85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "upscayl", "private": true, - "version": "2.15.1", + "version": "2.15.0", "productName": "Upscayl", "author": { "name": "Nayam Amarshe",