v1.0.61: restore recurring 30-min update check

This commit is contained in:
pdmarf
2026-10-07 18:45:50 +01:00
parent 6575f7a1e6
commit b1c645c7a5
5 changed files with 15 additions and 4 deletions
+7 -1
View File
@@ -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 SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
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();
setTimeout(() => {
streamDeck.logger.info("Running initial (10s post-launch) update check");
checkForUpdates();
}, 10_000);
setInterval(() => {
streamDeck.logger.info("Running scheduled (30min) update check");
checkForUpdates();
}, UPDATE_CHECK_INTERVAL_MS);