From fe38dcc6f044c48e6b272db8e043a17c2586b4ea Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 2 Mar 2026 10:50:42 -0800 Subject: [PATCH] Testing remote updates. --- package.json | 2 +- src/main/util/checkForAppUpdates.ts | 3 ++- src/main/util/trayStatus.ts | 7 ++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6f4323b..732f1c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "esdp", "productName": "EMS Uploader", - "version": "0.0.1-alpha.1", + "version": "0.0.1-alpha.2", "description": "EMS Uploader", "main": "./out/main/index.js", "author": "ImEX Systems Inc.", diff --git a/src/main/util/checkForAppUpdates.ts b/src/main/util/checkForAppUpdates.ts index 47e1da7..7e9e4aa 100644 --- a/src/main/util/checkForAppUpdates.ts +++ b/src/main/util/checkForAppUpdates.ts @@ -1,5 +1,6 @@ import { autoUpdater } from "electron-updater"; import store from "../store/store"; +import log from "electron-log/main"; let continuousUpdatesTriggered = false; @@ -21,7 +22,7 @@ async function checkForAppUpdates(channel?: string | null): Promise { //Persist to store store.set("app.channel", channel); } - + log.debug("Checking for app updates on channel:", autoUpdater.channel); autoUpdater.checkForUpdates(); } diff --git a/src/main/util/trayStatus.ts b/src/main/util/trayStatus.ts index eacd96a..888b2b1 100644 --- a/src/main/util/trayStatus.ts +++ b/src/main/util/trayStatus.ts @@ -32,7 +32,12 @@ function buildStatusTrayImage( const pngjs = (() => { try { return require("pngjs") as { - PNG?: { sync?: { read?: (b: Buffer) => unknown; write?: (p: unknown) => Buffer } }; + PNG?: { + sync?: { + read?: (b: Buffer) => unknown; + write?: (p: unknown) => Buffer; + }; + }; }; } catch { return null;