Bundle Stockfish 19 with every package and set it up on first start
- 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:
parent
6db8d67821
commit
56cfb4d09f
22 changed files with 383 additions and 35 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -30,3 +30,9 @@ 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'
|
||||
|
|
|
|||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -43,12 +43,14 @@ jobs:
|
|||
- name: System libraries
|
||||
run: sudo apt-get update && sudo apt-get install -y pkg-config libasound2-dev libxkbcommon-dev libwayland-dev libfuse2
|
||||
- run: cargo build --release --locked -p chesspenguin
|
||||
- name: Stockfish
|
||||
run: packaging/stockfish.sh linux build/stockfish
|
||||
- name: Tarball
|
||||
run: |
|
||||
name="ChessPenguin-${VERSION}-linux-x86_64"
|
||||
mkdir -p "dist/${name}"
|
||||
cp target/release/chesspenguin LICENSE README.md THIRD_PARTY_NOTICES.md "dist/${name}/"
|
||||
cp -r packaging/icons packaging/*.desktop examples "dist/${name}/"
|
||||
cp -r packaging/icons packaging/*.desktop examples build/stockfish "dist/${name}/"
|
||||
tar -C dist -czf "dist/${name}.tar.gz" "${name}"
|
||||
rm -rf "dist/${name}"
|
||||
- name: deb, rpm and Arch Linux packages
|
||||
|
|
@ -94,6 +96,9 @@ jobs:
|
|||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo build --release --locked -p chesspenguin
|
||||
- name: Stockfish
|
||||
shell: bash
|
||||
run: packaging/stockfish.sh windows build/stockfish
|
||||
- name: Zip
|
||||
shell: pwsh
|
||||
run: |
|
||||
|
|
@ -101,7 +106,7 @@ jobs:
|
|||
New-Item -ItemType Directory -Force -Path "dist/$name" | Out-Null
|
||||
Copy-Item target/release/chesspenguin.exe "dist/$name/ChessPenguin.exe"
|
||||
Copy-Item LICENSE, README.md, THIRD_PARTY_NOTICES.md "dist/$name/"
|
||||
Copy-Item -Recurse examples "dist/$name/"
|
||||
Copy-Item -Recurse examples, build/stockfish "dist/$name/"
|
||||
Compress-Archive -Path "dist/$name" -DestinationPath "dist/$name.zip"
|
||||
Remove-Item -Recurse "dist/$name"
|
||||
- uses: actions/upload-artifact@v7
|
||||
|
|
@ -114,10 +119,13 @@ jobs:
|
|||
if: github.ref_type == 'tag'
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: dist
|
||||
merge-multiple: true
|
||||
- name: Stockfish source (GPL-3.0 source offer for the bundled engine)
|
||||
run: packaging/stockfish.sh source dist
|
||||
- name: Checksums
|
||||
run: cd dist && sha256sum * > SHA256SUMS.txt
|
||||
- uses: softprops/action-gh-release@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue