Testing remote updates.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "esdp",
|
"name": "esdp",
|
||||||
"productName": "EMS Uploader",
|
"productName": "EMS Uploader",
|
||||||
"version": "0.0.1-alpha.1",
|
"version": "0.0.1-alpha.2",
|
||||||
"description": "EMS Uploader",
|
"description": "EMS Uploader",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "ImEX Systems Inc.",
|
"author": "ImEX Systems Inc.",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { autoUpdater } from "electron-updater";
|
import { autoUpdater } from "electron-updater";
|
||||||
import store from "../store/store";
|
import store from "../store/store";
|
||||||
|
import log from "electron-log/main";
|
||||||
|
|
||||||
let continuousUpdatesTriggered = false;
|
let continuousUpdatesTriggered = false;
|
||||||
|
|
||||||
@@ -21,7 +22,7 @@ async function checkForAppUpdates(channel?: string | null): Promise<void> {
|
|||||||
//Persist to store
|
//Persist to store
|
||||||
store.set("app.channel", channel);
|
store.set("app.channel", channel);
|
||||||
}
|
}
|
||||||
|
log.debug("Checking for app updates on channel:", autoUpdater.channel);
|
||||||
autoUpdater.checkForUpdates();
|
autoUpdater.checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,12 @@ function buildStatusTrayImage(
|
|||||||
const pngjs = (() => {
|
const pngjs = (() => {
|
||||||
try {
|
try {
|
||||||
return require("pngjs") as {
|
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 {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user