From 383d34cab5cf92a20a0904189c2a5ff36e2e74ac Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Mon, 19 Oct 2026 12:28:20 +0300 Subject: [PATCH] ChessPenguin 0.6.1 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 9 +++++++++ Cargo.lock | 8 ++++---- Cargo.toml | 2 +- apps/desktop/src/examples.rs | 17 ++++++++++++++--- apps/desktop/src/i18n.rs | 15 +++++++++++++-- apps/desktop/src/large_db.rs | 4 +++- ...github.vrubelroman.chessPenguin.metainfo.xml | 5 +++++ 7 files changed, 49 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4c9364..f7d5e40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes are listed here. Versions follow [Semantic Versioning](https://semver.org/). +## [0.6.1] — 2026-10-19 + +- The library is no longer empty at the first start: two sample databases are on the shelf — + classic games (38 famous games from Anderssen and Morphy to Kasparov and Carlsen, each with a + short introduction; four with full comments, variations and arrows) and Alekhine's games (267 + games, moves only). Remove them from the shelf like any database; they do not come back. +- The first start uses the system language when it is one of the six (English, Russian, French, + German, Spanish, Italian), otherwise English. A language chosen in the settings is kept. + ## [0.6.0] — 2026-10-19 - Stockfish is no longer inside the packages (they shrink from about 95 MB to about 14 MB): the diff --git a/Cargo.lock b/Cargo.lock index 3eb9761..9fac504 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -661,7 +661,7 @@ dependencies = [ [[package]] name = "chess-core" -version = "0.6.0" +version = "0.6.1" dependencies = [ "encoding_rs", "pgn-reader", @@ -671,7 +671,7 @@ dependencies = [ [[package]] name = "chess-import" -version = "0.6.0" +version = "0.6.1" dependencies = [ "chess-core", "encoding_rs", @@ -683,7 +683,7 @@ dependencies = [ [[package]] name = "chesspenguin" -version = "0.6.0" +version = "0.6.1" dependencies = [ "arboard", "chess-core", @@ -4083,7 +4083,7 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" [[package]] name = "uci" -version = "0.6.0" +version = "0.6.1" dependencies = [ "thiserror 2.0.21", ] diff --git a/Cargo.toml b/Cargo.toml index f29f02f..62261a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/chess-core", "crates/chess-import", "crates/uci", "apps/desktop"] [workspace.package] -version = "0.6.0" +version = "0.6.1" edition = "2024" rust-version = "1.97" license = "GPL-3.0-or-later" diff --git a/apps/desktop/src/examples.rs b/apps/desktop/src/examples.rs index dd21f6b..9d2aa42 100644 --- a/apps/desktop/src/examples.rs +++ b/apps/desktop/src/examples.rs @@ -10,8 +10,14 @@ use crate::settings::Settings; fn files() -> [(&'static str, &'static str); 2] { [ - (tr("Classic games"), include_str!("../../../examples/classics.pgn")), - (tr("Alekhine"), include_str!("../../../examples/alekhine.pgn")), + ( + tr("Classic games"), + include_str!("../../../examples/classics.pgn"), + ), + ( + tr("Alekhine"), + include_str!("../../../examples/alekhine.pgn"), + ), ] } @@ -69,7 +75,12 @@ mod tests { assert!(db.len() >= 30, "{name}: {} games", db.len()); for i in 0..db.len() { let parsed = db.load_game(i).unwrap(); - assert!(parsed.diagnostics.is_empty(), "{name} #{}: {:?}", i + 1, parsed.diagnostics); + assert!( + parsed.diagnostics.is_empty(), + "{name} #{}: {:?}", + i + 1, + parsed.diagnostics + ); } let _ = std::fs::remove_dir_all(&dir); } diff --git a/apps/desktop/src/i18n.rs b/apps/desktop/src/i18n.rs index 671718f..a21795b 100644 --- a/apps/desktop/src/i18n.rs +++ b/apps/desktop/src/i18n.rs @@ -44,7 +44,11 @@ impl Lang { .into_iter() .find_map(|l| { // "ru-RU", "ru_RU.UTF-8", "de-CH", "es-419", "fr". - let code = l.as_ref().split(['-', '_', '.', '@']).next()?.to_ascii_lowercase(); + let code = l + .as_ref() + .split(['-', '_', '.', '@']) + .next()? + .to_ascii_lowercase(); match code.as_str() { "en" => Some(Lang::En), "ru" => Some(Lang::Ru), @@ -2680,7 +2684,14 @@ const ROWS: &[[&str; 6]] = &[ "Partidas clásicas", "Partite classiche", ], - ["Alekhine", "Алехин", "Alekhine", "Aljechin", "Alekhine", "Aljechin"], + [ + "Alekhine", + "Алехин", + "Alekhine", + "Aljechin", + "Alekhine", + "Aljechin", + ], ]; #[cfg(test)] diff --git a/apps/desktop/src/large_db.rs b/apps/desktop/src/large_db.rs index 4f5e90a..7c086de 100644 --- a/apps/desktop/src/large_db.rs +++ b/apps/desktop/src/large_db.rs @@ -266,7 +266,9 @@ impl LargeView { // `CP_FILTER="player=carlsen;years=2015-2026;elo=2600"` (screenshots). if let Ok(spec) = std::env::var("CP_FILTER") { for part in spec.split(';') { - let Some((k, v)) = part.split_once('=') else { continue }; + let Some((k, v)) = part.split_once('=') else { + continue; + }; match k.trim() { "player" => form.player.text = v.to_string(), "years" => { diff --git a/packaging/io.github.vrubelroman.chessPenguin.metainfo.xml b/packaging/io.github.vrubelroman.chessPenguin.metainfo.xml index 32f68c2..fa8b062 100644 --- a/packaging/io.github.vrubelroman.chessPenguin.metainfo.xml +++ b/packaging/io.github.vrubelroman.chessPenguin.metainfo.xml @@ -43,6 +43,11 @@ BoardGame + + +

Sample databases at the first start (38 classic games, 267 games of Alekhine); the first start uses the system language.

+
+

Stockfish is downloaded on request (smaller packages; the Flatpak keeps it inside); macOS builds for Apple Silicon; position search fixes and narrow-window layout.