Stockfish on request instead of bundled; macOS (Apple Silicon) builds
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

Packages no longer carry Stockfish (about 14 MB instead of 95): the first
analysis without an engine offers to download the official Stockfish 19
"universal" build from GitHub (pinned per platform with its SHA-256, checked
before use, unpacked into the user's local data directory, test-started),
then starts the analysis the user asked for. Settings -> Engines: download
with progress and cancel, "file not found" with download again, removal with
confirmation; "Choose engine file…" for any other engine. A system stockfish
is offered first when there is one. ChessPenguin's Stockfish = bundled
(Flatpak) or downloaded.

macOS: release job and CI job on macos-14 build ChessPenguin.app (icon,
Info.plist, ad-hoc signature) in a .dmg; Homebrew paths for a system
stockfish. Not signed by Apple yet.

Decisions 14-15; design docs/design/engine-download.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-19 09:33:37 +03:00
parent 99264f3d24
commit 50eb5e6623
24 changed files with 2473 additions and 85 deletions

View file

@ -30,9 +30,13 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --locked -p chesspenguin
# The bundled engine: pinned download, checksum and a UCI handshake.
- name: Stockfish
shell: bash
run: |
packaging/stockfish.sh windows build/stockfish
printf 'uci\nquit\n' | build/stockfish/stockfish.exe | grep -m1 '^id name'
# Apple Silicon: the build and the app bundle (decision 15).
macos-build:
runs-on: macos-14
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --release --locked -p chesspenguin
- run: VERSION=0.0.0 packaging/macos/build-app.sh dist