ChessPenguin 0.1.0
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

Native chess database for Linux: PGN library, notation with variations and
comments, UCI engine analysis, move entry and export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubel 2026-10-18 01:54:06 +03:00
commit 8188b584aa
296 changed files with 22048 additions and 0 deletions

32
packaging/build-appimage.sh Executable file
View file

@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Builds ChessPenguin-<version>-x86_64.AppImage from target/release/chesspenguin.
# Usage (repository root): VERSION=0.1.0 packaging/build-appimage.sh dist/
set -euo pipefail
app_id="io.github.vrubelroman.chessPenguin"
out_dir="${1:-dist}"
version="${VERSION:?set VERSION}"
work="$(mktemp -d)"
trap 'rm -rf "${work}"' EXIT
curl -fsSL -o "${work}/linuxdeploy" \
https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x "${work}/linuxdeploy"
appdir="${work}/AppDir"
install -Dm755 target/release/chesspenguin "${appdir}/usr/bin/chesspenguin"
# AppStream metadata is left out: appimagetool validates its screenshot URLs over the network.
for size in 16 24 32 48 64 128 256 512; do
install -Dm644 "packaging/icons/hicolor/${size}x${size}/apps/${app_id}.png" \
"${appdir}/usr/share/icons/hicolor/${size}x${size}/apps/${app_id}.png"
done
mkdir -p "${out_dir}"
export LINUXDEPLOY_OUTPUT_VERSION="${version}"
export OUTPUT="${out_dir}/ChessPenguin-${version}-x86_64.AppImage"
APPIMAGE_EXTRACT_AND_RUN=1 "${work}/linuxdeploy" \
--appdir "${appdir}" \
--desktop-file "packaging/${app_id}.desktop" \
--icon-file "packaging/icons/hicolor/256x256/apps/${app_id}.png" \
--output appimage
echo "Built ${OUTPUT}"

View file

@ -0,0 +1,40 @@
# Flatpak manifest. CI builds a .flatpak bundle with network access during the build
# (cargo fetches crates). For Flathub, vendored sources (flatpak-cargo-generator) would be needed.
app-id: io.github.vrubelroman.chessPenguin
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: chesspenguin
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
- --socket=pulseaudio
# PGN files and UCI engine executables live in the user's home.
- --filesystem=home
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
env:
CARGO_HOME: /run/build/chesspenguin/cargo
modules:
- name: chesspenguin
buildsystem: simple
build-commands:
- cargo build --release --locked -p chesspenguin
- install -Dm755 target/release/chesspenguin /app/bin/chesspenguin
- install -Dm644 packaging/io.github.vrubelroman.chessPenguin.desktop /app/share/applications/io.github.vrubelroman.chessPenguin.desktop
- install -Dm644 packaging/io.github.vrubelroman.chessPenguin.metainfo.xml /app/share/metainfo/io.github.vrubelroman.chessPenguin.metainfo.xml
- for s in 16 24 32 48 64 128 256 512; do install -Dm644 packaging/icons/hicolor/${s}x${s}/apps/io.github.vrubelroman.chessPenguin.png /app/share/icons/hicolor/${s}x${s}/apps/io.github.vrubelroman.chessPenguin.png; done
sources:
- type: dir
path: ../..
skip:
- target
- .flatpak-builder
- pgnFilesforExample
- engines

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View file

@ -0,0 +1,14 @@
[Desktop Entry]
Type=Application
Name=ChessPenguin
GenericName=Chess Database
GenericName[ru]=Шахматная база
Comment=View, enter and analyse chess games in PGN
Comment[ru]=Просмотр, ввод и анализ шахматных партий в PGN
Exec=chesspenguin %F
Icon=io.github.vrubelroman.chessPenguin
Terminal=false
Categories=Game;BoardGame;
MimeType=application/x-chess-pgn;application/vnd.chess-pgn;
Keywords=chess;pgn;uci;stockfish;analysis;шахматы;
StartupWMClass=io.github.vrubelroman.chessPenguin

View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.vrubelroman.chessPenguin</id>
<name>ChessPenguin</name>
<summary>Chess database: view, enter and analyse PGN games</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<developer id="io.github.vrubelroman">
<name>vrubelroman</name>
</developer>
<description>
<p>
ChessPenguin is a native desktop chess database for PGN files. Open annotated books and
game collections, browse games with variations and comments, enter your own games and
analyse them with any UCI engine such as Stockfish.
</p>
<ul>
<li>Library of PGN databases with a searchable, sortable game list</li>
<li>Move tree with nested variations, comments and NAGs</li>
<li>Engine analysis with several lines, best-move arrows and an evaluation bar</li>
<li>Step through engine lines on the board without changing the game</li>
<li>Copy PGN/FEN, save games, undo and redo</li>
<li>Legacy encodings of real-world PGN files are detected</li>
</ul>
</description>
<launchable type="desktop-id">io.github.vrubelroman.chessPenguin.desktop</launchable>
<url type="homepage">https://github.com/vrubelroman/chessPenguin</url>
<url type="bugtracker">https://github.com/vrubelroman/chessPenguin/issues</url>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/vrubelroman/chessPenguin/main/docs/screenshots/analysis.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/vrubelroman/chessPenguin/main/docs/screenshots/library.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1"/>
<categories>
<category>Game</category>
<category>BoardGame</category>
</categories>
<releases>
<release version="0.1.0" date="2026-10-18">
<description><p>First public release.</p></description>
</release>
</releases>
</component>

66
packaging/nfpm.yaml Normal file
View file

@ -0,0 +1,66 @@
# deb and rpm packages (https://nfpm.goreleaser.com). Run from the repository root:
# VERSION=0.1.0 nfpm package -f packaging/nfpm.yaml -p deb -t dist/
name: chesspenguin
arch: amd64
platform: linux
version: ${VERSION}
section: games
priority: optional
maintainer: vrubelroman <vrubelroman@gmail.com>
vendor: vrubelroman
homepage: https://github.com/vrubelroman/chessPenguin
license: GPL-3.0-or-later
description: |
Chess database for Linux.
View, enter and analyse chess games in PGN with any UCI engine
(Stockfish and others): variations, comments, multi-line analysis.
contents:
- src: target/release/chesspenguin
dst: /usr/bin/chesspenguin
file_info:
mode: 0755
- src: packaging/io.github.vrubelroman.chessPenguin.desktop
dst: /usr/share/applications/io.github.vrubelroman.chessPenguin.desktop
- src: packaging/io.github.vrubelroman.chessPenguin.metainfo.xml
dst: /usr/share/metainfo/io.github.vrubelroman.chessPenguin.metainfo.xml
# Icons are listed one by one so the package does not own the shared hicolor directories.
- src: packaging/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/16x16/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/24x24/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/32x32/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/48x48/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/64x64/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/128x128/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/256x256/apps/io.github.vrubelroman.chessPenguin.png
- src: packaging/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png
dst: /usr/share/icons/hicolor/512x512/apps/io.github.vrubelroman.chessPenguin.png
- src: LICENSE
dst: /usr/share/licenses/chesspenguin/LICENSE
- src: THIRD_PARTY_NOTICES.md
dst: /usr/share/doc/chesspenguin/THIRD_PARTY_NOTICES.md
- src: examples/classics.pgn
dst: /usr/share/doc/chesspenguin/examples/classics.pgn
overrides:
deb:
depends:
- libc6
- libasound2 | libasound2t64
- libxkbcommon0
recommends:
- libvulkan1
- libegl1
rpm:
depends:
- alsa-lib
- libxkbcommon
recommends:
- vulkan-loader
- mesa-libEGL

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB