release(v0.3.7): auto-check каждый час вместо 6
Some checks failed
CI / Typecheck + Tests (push) Has been cancelled
CI / Build (Windows) (push) Has been cancelled
Release / Build installer + publish release (push) Has been cancelled

6 часов было выбрано произвольно как "вежливо для сервера". На
практике слишком долго для backgound-приложения: новый релиз
доезжает до пользователя только через полдня.

Меняем на 1 час — все сравнимые приложения (Discord 30 мин,
Slack 30 мин, VS Code 1 ч) используют похожие интервалы.
Стартовая проверка (5 сек после запуска) остаётся.

Нагрузка минимальна: запрос на latest.yml = 362 байта.

UI текст «Авто-проверка раз в 6 часов» → «раз в час».

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
AnRil
2026-05-17 19:01:06 +07:00
parent f141d6f0d8
commit 70eb4717ec
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "laude", "name": "laude",
"version": "0.3.6", "version": "0.3.7",
"description": "Exercise reminder — Windows desktop app", "description": "Exercise reminder — Windows desktop app",
"main": "out/main/index.js", "main": "out/main/index.js",
"author": "AnRil", "author": "AnRil",

View File

@@ -7,7 +7,7 @@ let currentStatus: UpdaterStatus = { kind: 'idle' }
let wired = false let wired = false
let checkInterval: NodeJS.Timeout | null = null let checkInterval: NodeJS.Timeout | null = null
const CHECK_INTERVAL_MS = 6 * 60 * 60 * 1000 // every 6 hours const CHECK_INTERVAL_MS = 60 * 60 * 1000 // every hour
export function getUpdaterStatus(): UpdaterStatus { export function getUpdaterStatus(): UpdaterStatus {
return currentStatus return currentStatus

View File

@@ -187,7 +187,7 @@ function Body({
tone="muted" tone="muted"
icon={<PackageCheck size={16} strokeWidth={2.4} />} icon={<PackageCheck size={16} strokeWidth={2.4} />}
title="Проверить обновления" title="Проверить обновления"
subtitle="Авто-проверка раз в 6 часов" subtitle="Авто-проверка раз в час"
action={ action={
<Button size="sm" onClick={onCheck} disabled={busy}> <Button size="sm" onClick={onCheck} disabled={busy}>
<RefreshCw size={13} strokeWidth={2.5} /> Проверить <RefreshCw size={13} strokeWidth={2.5} /> Проверить