Testing remote updates.
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user