diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5ef50ba..3b64809 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,8 +6,8 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https
- The update check goes through the ChessPenguin site (GitHub when the site does not
answer), which counts installations that run: once a day, only a random number of the
- installation, the version and the platform. With the check turned off, nothing is
- sent. The site's statistics show installations by day, platform and version.
+ installation, the version and the platform. With the check at start turned off,
+ nothing is sent unless one checks by hand. The site's statistics show installations by day, platform and version.
## [1.0.0] — 2026-10-24
diff --git a/androidApp/app/src/main/res/values-de/strings.xml b/androidApp/app/src/main/res/values-de/strings.xml
index eff82b6..40d2d1c 100644
--- a/androidApp/app/src/main/res/values-de/strings.xml
+++ b/androidApp/app/src/main/res/values-de/strings.xml
@@ -376,7 +376,7 @@
KopierenUpdatesBeim Start nach Updates suchen
- Einmal am Tag fragt ChessPenguin seine Website nach der neuesten Version; die Website zählt laufende Installationen. Gesendet werden nur eine Zufallsnummer dieser Installation und die Version.
+ Einmal am Tag fragt ChessPenguin seine Website nach der neuesten Version; die Website zählt laufende Installationen. Gesendet werden nur eine Zufallsnummer dieser Installation, die Version und das System.Jetzt prüfenWird geprüft…Sie haben die neueste Version
diff --git a/androidApp/app/src/main/res/values-es/strings.xml b/androidApp/app/src/main/res/values-es/strings.xml
index 48e5743..eb23455 100644
--- a/androidApp/app/src/main/res/values-es/strings.xml
+++ b/androidApp/app/src/main/res/values-es/strings.xml
@@ -382,7 +382,7 @@
CopiarActualizacionesBuscar actualizaciones al iniciar
- Una vez al día ChessPenguin pregunta a su sitio cuál es la última versión; el sitio cuenta las instalaciones en uso. Solo se envían un número aleatorio de esta instalación y la versión.
+ Una vez al día ChessPenguin pregunta a su sitio cuál es la última versión; el sitio cuenta las instalaciones en uso. Solo se envían un número aleatorio de esta instalación, la versión y el sistema.Comprobar ahoraComprobando…Tienes la última versión
diff --git a/androidApp/app/src/main/res/values-fr/strings.xml b/androidApp/app/src/main/res/values-fr/strings.xml
index e391a9d..be7f3f2 100644
--- a/androidApp/app/src/main/res/values-fr/strings.xml
+++ b/androidApp/app/src/main/res/values-fr/strings.xml
@@ -382,7 +382,7 @@
CopierMises à jourRechercher les mises à jour au démarrage
- Une fois par jour, ChessPenguin demande à son site quelle est la dernière version ; le site compte les installations actives. Seuls un numéro aléatoire de cette installation et la version sont envoyés.
+ Une fois par jour, ChessPenguin demande à son site quelle est la dernière version ; le site compte les installations actives. Seuls un numéro aléatoire de cette installation, la version et le système sont envoyés.Vérifier maintenantVérification…Vous avez la dernière version
diff --git a/androidApp/app/src/main/res/values-it/strings.xml b/androidApp/app/src/main/res/values-it/strings.xml
index a25318f..13f5aae 100644
--- a/androidApp/app/src/main/res/values-it/strings.xml
+++ b/androidApp/app/src/main/res/values-it/strings.xml
@@ -382,7 +382,7 @@
CopiaAggiornamentiCerca aggiornamenti all’avvio
- Una volta al giorno ChessPenguin chiede al suo sito qual è l’ultima versione; il sito conta le installazioni in uso. Vengono inviati solo un numero casuale di questa installazione e la versione.
+ Una volta al giorno ChessPenguin chiede al suo sito qual è l’ultima versione; il sito conta le installazioni in uso. Vengono inviati solo un numero casuale di questa installazione, la versione e il sistema.Controlla oraControllo in corso…Hai l’ultima versione
diff --git a/androidApp/app/src/main/res/values-kk/strings.xml b/androidApp/app/src/main/res/values-kk/strings.xml
index c1b94d9..a3fb20d 100644
--- a/androidApp/app/src/main/res/values-kk/strings.xml
+++ b/androidApp/app/src/main/res/values-kk/strings.xml
@@ -375,7 +375,7 @@
КөшіруЖаңартуларІске қосқанда жаңартуларды тексеру
- Күніне бір рет ChessPenguin өз сайтынан соңғы нұсқаны сұрайды; сайт жұмыс істеп тұрған орнатуларды санайды. Тек осы орнатудың кездейсоқ нөмірі мен нұсқа жіберіледі.
+ Күніне бір рет ChessPenguin өз сайтынан соңғы нұсқаны сұрайды; сайт жұмыс істеп тұрған орнатуларды санайды. Тек осы орнатудың кездейсоқ нөмірі, нұсқа және жүйе жіберіледі.Қазір тексеруТексерілуде…Сізде соңғы нұсқа
diff --git a/androidApp/app/src/main/res/values-pt/strings.xml b/androidApp/app/src/main/res/values-pt/strings.xml
index 0753d2e..312a82e 100644
--- a/androidApp/app/src/main/res/values-pt/strings.xml
+++ b/androidApp/app/src/main/res/values-pt/strings.xml
@@ -381,7 +381,7 @@
CopiarAtualizaçõesVerificar atualizações ao iniciar
- Uma vez por dia o ChessPenguin pergunta ao seu site qual é a versão mais recente; o site conta as instalações em uso. São enviados apenas um número aleatório desta instalação e a versão.
+ Uma vez por dia o ChessPenguin pergunta ao seu site qual é a versão mais recente; o site conta as instalações em uso. São enviados apenas um número aleatório desta instalação, a versão e o sistema.Verificar agoraVerificando…Você tem a versão mais recente
diff --git a/androidApp/app/src/main/res/values-ru/strings.xml b/androidApp/app/src/main/res/values-ru/strings.xml
index c98bf9e..a83cf3b 100644
--- a/androidApp/app/src/main/res/values-ru/strings.xml
+++ b/androidApp/app/src/main/res/values-ru/strings.xml
@@ -388,7 +388,7 @@
КопироватьОбновленияПроверять обновления при запуске
- Раз в день ChessPenguin спрашивает у своего сайта, какая версия последняя; сайт считает работающие установки. Передаются только случайный номер этой установки и версия.
+ Раз в день ChessPenguin спрашивает у своего сайта, какая версия последняя; сайт считает работающие установки. Передаются только случайный номер этой установки, версия и система.Проверить сейчасПроверяю…У вас последняя версия
diff --git a/androidApp/app/src/main/res/values-uz/strings.xml b/androidApp/app/src/main/res/values-uz/strings.xml
index dd774ce..7942466 100644
--- a/androidApp/app/src/main/res/values-uz/strings.xml
+++ b/androidApp/app/src/main/res/values-uz/strings.xml
@@ -374,7 +374,7 @@
NusxalashYangilanishlarIshga tushganda yangilanishlarni tekshirish
- ChessPenguin kuniga bir marta oʻz saytidan eng soʻnggi versiyani soʻraydi; sayt ishlayotgan oʻrnatmalarni sanaydi. Faqat shu oʻrnatmaning tasodifiy raqami va versiya yuboriladi.
+ ChessPenguin kuniga bir marta oʻz saytidan eng soʻnggi versiyani soʻraydi; sayt ishlayotgan oʻrnatmalarni sanaydi. Faqat shu oʻrnatmaning tasodifiy raqami, versiya va tizim yuboriladi.Hozir tekshirishTekshirilmoqda…Sizda eng soʻnggi versiya
diff --git a/androidApp/app/src/main/res/values/strings.xml b/androidApp/app/src/main/res/values/strings.xml
index 3996393..3343998 100644
--- a/androidApp/app/src/main/res/values/strings.xml
+++ b/androidApp/app/src/main/res/values/strings.xml
@@ -378,7 +378,7 @@
CopyUpdatesCheck for updates at start
- Once a day ChessPenguin asks its site which version is the latest; the site counts installations that run. Only a random number of this installation and the version are sent.
+ Once a day ChessPenguin asks its site which version is the latest; the site counts installations that run. Only a random number of this installation, the version and the system are sent.Check nowChecking…You have the latest version
diff --git a/apps/desktop/src/update.rs b/apps/desktop/src/update.rs
index 47b518c..a728696 100644
--- a/apps/desktop/src/update.rs
+++ b/apps/desktop/src/update.rs
@@ -242,7 +242,7 @@ impl Install {
Install::Arch => "arch",
Install::Aur => "aur",
Install::Flatpak => "flatpak",
- Install::Other => "source",
+ Install::Other => "other",
}
}
}
diff --git a/website/.env.example b/website/.env.example
index a4cd142..c0855fe 100644
--- a/website/.env.example
+++ b/website/.env.example
@@ -15,3 +15,8 @@ STATS_PASSWORD=
GITHUB_REPO=vrubelroman/chessPenguin
# Take the visitor address from X-Forwarded-For / X-Real-IP (set by nginx).
TRUST_PROXY=1
+
+# The owner's Telegram bot (downloads, installations, /stat): its token from @BotFather
+# and the owner's chat id. Empty: no notices. One server per bot.
+TELEGRAM_TOKEN=
+TELEGRAM_CHAT=
diff --git a/website/README.md b/website/README.md
index 7f758bb..46c7f7e 100644
--- a/website/README.md
+++ b/website/README.md
@@ -73,18 +73,21 @@ The programs (desktop and Android, from 1.0.1) check for updates through `GET /a
instead of GitHub: the answer is GitHub's latest release (the fields the programs read:
`tag_name`, `html_url`, `assets[].name/browser_download_url/size`), and the call is counted
in the `launches` table — one row per installation and local day: the random id the
-program made up, its version, platform (`windows`, `macos`, `deb`, `rpm`, `arch`, `aur`,
-`appimage`, `flatpak`, `tarball`, `source`, `android`, `android-noengine`) and the country
-of the address (the address is not kept). The local network is not counted. `/stats`
+program made up (32 hex digits), its version, platform (`windows`, `macos`, `deb`, `rpm`,
+`arch`, `aur`, `appimage`, `flatpak`, `tarball`, `other`, `android`, `android-noengine`) and
+the country of the address (the address is not kept). The local network is not counted,
+nor more than 5 new installations a day from one address. `/stats`
shows installations that ran today, in 7 and 30 days, in all, and new ones in 7 days, by
platform, and the versions of the last 7 days. A program that cannot reach the site asks
-GitHub (uncounted); one with the update check turned off is not counted.
+GitHub (uncounted); one with the update check at start turned off is counted only when
+the user checks by hand.
## Telegram
With `TELEGRAM_TOKEN` (the owner's bot) and `TELEGRAM_CHAT` (the owner's chat id) in
-`.env`, the site writes to the owner: «⬇️ Скачали …» for a person's download (not
-crawlers, the owner or the local network), «🆕 Новая установка №N» for an installation's
+`.env`, the site writes to the owner (with the country only): «⬇️ Скачали …» for a
+person's download (not crawlers, the owner or the local network; once a day per file and
+visitor), «🆕 Новая установка №N» for an installation's
first run, «⬆️ Обновилась …» when it runs a new version, «▶️ Запуск …» when it runs on a
new day (once a day at most). `/stat` answers with today and all time: downloads,
installations that ran and new ones, active in 7 and 30 days, by platform. Only the
diff --git a/website/server/src/main.rs b/website/server/src/main.rs
index 3e994bc..38bec37 100644
--- a/website/server/src/main.rs
+++ b/website/server/src/main.rs
@@ -44,8 +44,20 @@ pub const PLATFORMS: &[(&str, &str)] = &[
("checksums", "SHA256SUMS.txt"),
];
+/// What a program's update check may give as its platform (desktop installations,
+/// Android builds).
+const LAUNCH_PLATFORMS: &[&str] = &[
+ "windows", "macos", "deb", "rpm", "arch", "aur", "appimage", "flatpak", "tarball", "other",
+ "android", "android-noengine",
+];
+
+/// New installations counted per address and day.
+const NEW_INSTALLS_PER_ADDRESS: u32 = 5;
+
/// The latest release is asked from GitHub at most this often.
const RELEASE_TTL: Duration = Duration::from_secs(600);
+/// GitHub did not answer: what is known serves on, and GitHub is asked again after this.
+const RELEASE_RETRY: Duration = Duration::from_secs(60);
struct Config {
port: u16,
@@ -113,7 +125,12 @@ struct AppState {
http: reqwest::Client,
/// The same without following redirects: to learn where GitHub sends a file.
direct: reqwest::Client,
+ /// The latest release and until when it is fresh.
release: tokio::sync::Mutex