Fix auto-update condition and bump build version to 25.12.26; update app version to 2.15.0
This commit is contained in:
parent
5100d8df6a
commit
f7f53ae5e5
@ -57,7 +57,11 @@ const createMainWindow = () => {
|
|||||||
mainWindow.webContents
|
mainWindow.webContents
|
||||||
.executeJavaScript('localStorage.getItem("autoUpdate");', true)
|
.executeJavaScript('localStorage.getItem("autoUpdate");', true)
|
||||||
.then((lastSaved: string | null) => {
|
.then((lastSaved: string | null) => {
|
||||||
if (lastSaved !== null && lastSaved === "true") {
|
if (
|
||||||
|
lastSaved === null ||
|
||||||
|
lastSaved === undefined ||
|
||||||
|
lastSaved === "true"
|
||||||
|
) {
|
||||||
autoUpdater.checkForUpdates();
|
autoUpdater.checkForUpdates();
|
||||||
} else {
|
} else {
|
||||||
console.log("🚀 Auto Update is disabled");
|
console.log("🚀 Auto Update is disabled");
|
||||||
|
2
mas.json
2
mas.json
@ -2,7 +2,7 @@
|
|||||||
"productName": "Upscayl",
|
"productName": "Upscayl",
|
||||||
"appId": "org.upscayl.Upscayl",
|
"appId": "org.upscayl.Upscayl",
|
||||||
"afterSign": "./notarize.js",
|
"afterSign": "./notarize.js",
|
||||||
"buildVersion": "25.12.25",
|
"buildVersion": "25.12.26",
|
||||||
"asar": true,
|
"asar": true,
|
||||||
"asarUnpack": ["**/node_modules/sharp/**/*", "**/node_modules/@img/**/*"],
|
"asarUnpack": ["**/node_modules/sharp/**/*", "**/node_modules/@img/**/*"],
|
||||||
"extraFiles": [
|
"extraFiles": [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "upscayl",
|
"name": "upscayl",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.15.1",
|
"version": "2.15.0",
|
||||||
"productName": "Upscayl",
|
"productName": "Upscayl",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Nayam Amarshe",
|
"name": "Nayam Amarshe",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user