Testing remote updates.

This commit is contained in:
Patrick Fic
2026-03-02 10:50:42 -08:00
parent 4edd6cec09
commit fe38dcc6f0
3 changed files with 9 additions and 3 deletions

View File

@@ -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.",

View File

@@ -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<void> {
//Persist to store
store.set("app.channel", channel);
}
log.debug("Checking for app updates on channel:", autoUpdater.channel);
autoUpdater.checkForUpdates();
}

View File

@@ -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;