diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js b/com.pdma.notion-timer.sdPlugin/bin/plugin.js index 99ee210..dc31f31 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js @@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) { } // 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 SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4= @@ -6761,11 +6761,16 @@ plugin_default.ui.onSendToPlugin(async (ev) => { await checkForUpdates(send); } }); +var UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1e3; plugin_default.connect(); setTimeout(() => { plugin_default.logger.info("Running initial (10s post-launch) update check"); checkForUpdates(); }, 1e4); +setInterval(() => { + plugin_default.logger.info("Running scheduled (30min) update check"); + checkForUpdates(); +}, UPDATE_CHECK_INTERVAL_MS); /*! Bundled license information: @elgato/schemas/dist/streamdeck/plugins/index.mjs: diff --git a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig index b0e88c4..c3a4c2d 100644 --- a/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig +++ b/com.pdma.notion-timer.sdPlugin/bin/plugin.js.sig @@ -1 +1 @@ -Ýa c–CC# 3¢È­TÁ,rEþùipkÆL&Þ½U�0¶‚], ›…yhÒ0°Vý‹ûråiè(8'©z \ No newline at end of file +ìèN©÷Q”7ð‘kŽÛaâTÛ~gD‘Íbiž~ÉcÝöŸâ'!.þþkz:ó/hfÀÓNëvU?VÆ€éMçû \ No newline at end of file diff --git a/notion-timer.streamDeckPlugin b/notion-timer.streamDeckPlugin index e7988dc..f86c70e 100644 Binary files a/notion-timer.streamDeckPlugin and b/notion-timer.streamDeckPlugin differ diff --git a/src/plugin.ts b/src/plugin.ts index 8007a21..ac1a0fa 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -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); diff --git a/version.json b/version.json index 20401ea..294b302 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{ "version": "1.0.60" } +{ "version": "1.0.61" }