chessbaseLinux/packaging/nfpm.yaml
vrubelroman 50eb5e6623
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run
Stockfish on request instead of bundled; macOS (Apple Silicon) builds
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>
2026-10-19 09:33:37 +03:00

84 lines
3.3 KiB
YAML

# deb, rpm and Arch packages (https://nfpm.goreleaser.com). Run from the repository root:
# VERSION=0.1.0 nfpm package -f packaging/nfpm.yaml -p deb -t dist/ (deb, rpm, archlinux)
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: variations, comments,
multi-line engine analysis and whole-game review. The official Stockfish
is downloaded on request (or a system stockfish is used); any other UCI
engine can be added.
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
- libdbus-1-3
recommends:
- libvulkan1
- libegl1
suggests:
- stockfish
rpm:
depends:
- alsa-lib
- libxkbcommon
- dbus-libs
recommends:
- vulkan-loader
- mesa-libEGL
suggests:
- stockfish
archlinux:
depends:
- glibc
- gcc-libs
- alsa-lib
- libxkbcommon
- dbus
- hicolor-icon-theme
suggests:
- stockfish