v1.0.56: recheck for updates every 30 minutes, not just once at startup

The auto-updater used a one-shot setTimeout, so a version pushed after the
initial 10s post-launch check would sit unapplied until Stream Deck restarted
or someone hit the manual Check for Updates button.
This commit is contained in:
pdmarf
2026-10-07 18:36:51 +01:00
parent e2e29cc876
commit b08126e06e
5 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
}
// src/plugin.ts
var CURRENT_VERSION = "1.0.55";
var CURRENT_VERSION = "1.0.56";
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
@@ -6756,8 +6756,10 @@ plugin_default.ui.onSendToPlugin(async (ev) => {
await checkForUpdates(send);
}
});
var UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1e3;
plugin_default.connect();
setTimeout(() => checkForUpdates(), 1e4);
setInterval(() => checkForUpdates(), UPDATE_CHECK_INTERVAL_MS);
/*! Bundled license information:
@elgato/schemas/dist/streamdeck/plugins/index.mjs:
@@ -1 +1 @@
Ž0Æ8½/�$¤!Ó`¶A½k 5xå-s`␍ï>{8M’u}I¦:jCñ‘åq´E±Çêÿ;'}•)\<1÷c� 
eI���ւ�}����p�O�qrt���M[����z���Q��L퐽�8B�-�Q�fak�g6�5␍