v1.0.61: restore recurring 30-min update check
This commit is contained in:
@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/plugin.ts
|
// src/plugin.ts
|
||||||
var CURRENT_VERSION = "1.0.60";
|
var CURRENT_VERSION = "1.0.61";
|
||||||
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
||||||
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||||
@@ -6761,11 +6761,16 @@ plugin_default.ui.onSendToPlugin(async (ev) => {
|
|||||||
await checkForUpdates(send);
|
await checkForUpdates(send);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
var UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1e3;
|
||||||
plugin_default.connect();
|
plugin_default.connect();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
plugin_default.logger.info("Running initial (10s post-launch) update check");
|
plugin_default.logger.info("Running initial (10s post-launch) update check");
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
}, 1e4);
|
}, 1e4);
|
||||||
|
setInterval(() => {
|
||||||
|
plugin_default.logger.info("Running scheduled (30min) update check");
|
||||||
|
checkForUpdates();
|
||||||
|
}, UPDATE_CHECK_INTERVAL_MS);
|
||||||
/*! Bundled license information:
|
/*! Bundled license information:
|
||||||
|
|
||||||
@elgato/schemas/dist/streamdeck/plugins/index.mjs:
|
@elgato/schemas/dist/streamdeck/plugins/index.mjs:
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Ýa c–CC# 3¢ÈTÁ,rEþùipkÆL&Þ½U�0¶‚],›…yhÒ0°Vý‹ûråiè(8'©z
|
ěčN©÷Q”7đ‘kŽŰaâTŰ~gD‘Íbiž~ÉcÝöźâ'!.ţţkz:ó/hfŔÓNëvU?VĆ€éMçű
|
||||||
Binary file not shown.
+7
-1
@@ -1,4 +1,4 @@
|
|||||||
const CURRENT_VERSION = "1.0.60";
|
const CURRENT_VERSION = "1.0.61";
|
||||||
const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
const GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
||||||
const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
const SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||||
@@ -383,9 +383,15 @@ streamDeck.ui.onSendToPlugin<{ event: string; settings?: TimerSettings; token?:
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes
|
||||||
|
|
||||||
streamDeck.connect();
|
streamDeck.connect();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
streamDeck.logger.info("Running initial (10s post-launch) update check");
|
streamDeck.logger.info("Running initial (10s post-launch) update check");
|
||||||
checkForUpdates();
|
checkForUpdates();
|
||||||
}, 10_000);
|
}, 10_000);
|
||||||
|
setInterval(() => {
|
||||||
|
streamDeck.logger.info("Running scheduled (30min) update check");
|
||||||
|
checkForUpdates();
|
||||||
|
}, UPDATE_CHECK_INTERVAL_MS);
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{ "version": "1.0.60" }
|
{ "version": "1.0.61" }
|
||||||
|
|||||||
Reference in New Issue
Block a user