Bundle Stockfish 19 with every package and set it up on first start
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

- packaging/stockfish.sh fetches the pinned official universal build (SHA-256
  checked) for Linux and Windows and the source archive for the release.
- deb/rpm/Arch, AppImage, Flatpak, tarball and Windows zip ship it unmodified
  (AppImage: added after linuxdeploy, packed with appimagetool).
- The app resolves the built-in engine at run time (EngineConfig::builtin),
  adds it on first start (or a system stockfish), and offers engines found on
  the computer in Settings > Engines.
- install.sh installs Stockfish into ~/.local/lib/chesspenguin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubel 2026-10-18 11:53:30 +03:00
parent 6db8d67821
commit 56cfb4d09f
22 changed files with 383 additions and 35 deletions

View file

@ -24,6 +24,7 @@
Source files are never modified.
- **Notation** — main line as a two-column table, comments and variations as blocks,
mouse and keyboard navigation.
- **Stockfish included** — analysis works right after installation; other UCI engines can be added.
- **Engine analysis** — any UCI engine, up to 5 lines, best-move arrows, evaluation bar;
search time, threads and memory are set right in the analysis panel.
- **Game analysis** — evaluate the whole game in the background: evaluation graph under the board,
@ -54,9 +55,8 @@ Packages for every release are on the [Releases](https://github.com/vrubelroman/
| Flatpak | `flatpak install --user ChessPenguin-<version>-x86_64.flatpak` |
| Windows | unzip `ChessPenguin-<version>-windows-x86_64.zip`, run `ChessPenguin.exe` |
The engine is not bundled. Install Stockfish from your distribution
(`sudo apt install stockfish`) or download it from [stockfishchess.org](https://stockfishchess.org/download/),
then add it in **Settings → Engines**.
**Stockfish 19 is included** and set up on the first start: install and analyse. A `stockfish`
from your distribution is found too, and any other UCI engine can be added in **Settings → Engines**.
### Build from source
@ -64,7 +64,7 @@ Rust 1.97 or newer. On Debian/Ubuntu: `sudo apt install pkg-config libasound2-de
```sh
cargo run --release -p chesspenguin -- examples/classics.pgn
./scripts/install.sh # install for the current user (~/.local), --uninstall to remove
./scripts/install.sh # install for the current user (~/.local) with Stockfish; --no-stockfish, --uninstall
```
## Keyboard