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:
@@ -6438,7 +6438,7 @@ async function stopTimer(token, entryId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/plugin.ts
|
// 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 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=
|
||||||
@@ -6756,8 +6756,10 @@ 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(() => checkForUpdates(), 1e4);
|
setTimeout(() => checkForUpdates(), 1e4);
|
||||||
|
setInterval(() => 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 @@
|
|||||||
Ž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
|
||||||
Binary file not shown.
+7
-1
@@ -1,4 +1,4 @@
|
|||||||
const CURRENT_VERSION = "1.0.55";
|
const CURRENT_VERSION = "1.0.56";
|
||||||
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=
|
||||||
@@ -375,6 +375,12 @@ streamDeck.ui.onSendToPlugin<{ event: string; settings?: TimerSettings; token?:
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const UPDATE_CHECK_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes
|
||||||
|
|
||||||
streamDeck.connect();
|
streamDeck.connect();
|
||||||
|
|
||||||
|
// Initial check shortly after startup, then keep rechecking — a plugin process
|
||||||
|
// can run for days without Stream Deck restarting, and the old code only ever
|
||||||
|
// checked once per process lifetime.
|
||||||
setTimeout(() => checkForUpdates(), 10_000);
|
setTimeout(() => checkForUpdates(), 10_000);
|
||||||
|
setInterval(() => checkForUpdates(), UPDATE_CHECK_INTERVAL_MS);
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{ "version": "1.0.55" }
|
{ "version": "1.0.56" }
|
||||||
|
|||||||
Reference in New Issue
Block a user