ChessPenguin 0.6.1
Some checks failed
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Release / version (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / windows (push) Has been cancelled
Release / macos (push) Has been cancelled
Release / publish (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-19 12:28:20 +03:00
parent 9f661c9e3c
commit 383d34cab5
7 changed files with 49 additions and 11 deletions

View file

@ -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

8
Cargo.lock generated
View file

@ -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",
]

View file

@ -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"

View file

@ -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);
}

View file

@ -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)]

View file

@ -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" => {

View file

@ -43,6 +43,11 @@
<category>BoardGame</category>
</categories>
<releases>
<release version="0.6.1" date="2026-10-19">
<description>
<p>Sample databases at the first start (38 classic games, 267 games of Alekhine); the first start uses the system language.</p>
</description>
</release>
<release version="0.6.0" date="2026-10-19">
<description>
<p>Stockfish is downloaded on request (smaller packages; the Flatpak keeps it inside); macOS builds for Apple Silicon; position search fixes and narrow-window layout.</p>