R2: Debian package, desktop entry, launcher and application icon
- make deb (tools/deb.sh) builds tidewall_<version>-1_amd64.deb with dpkg-deb: launchers in /usr/games, the game in /usr/lib/tidewall, a validated desktop entry, hicolor icons, man pages, a DEP-5 copyright, the engine's licences and md5sums. No maintainer scripts. Depends on libc6 (>= 2.28), from the binary's GLIBC symbol versions. - make deb-check (tools/deb_check.sh) checks it in a throwaway debian:13 container: apt install with no recommends, desktop-file-validate, icons, man pages and licences, tidewall on a user's PATH, the server and the game headless as a user, lintian, and a purge that leaves nothing behind. - The tarball gains a tidewall launcher (any directory, through a symlink), install-desktop-entry.sh (per-user menu entry, --remove), tidewall.png and ENGINE-LICENSES.txt (Godot's MIT text and bundled notices, which R1 lacked). make dist-check covers the launcher and the menu entry. - Application icon: a hand-written SVG in palette colours, rendered to 16-512 px by make app-icon, and set as the window icon. test_app_icon checks the renders, the colours and the setting. - Fix: looping ambience played into the Dummy audio driver could be reported as resources in use at exit. Directors play nothing without real audio output (SoundBank.has_output()) and stop their voices on exit. Tests: make check (648), make dist-check, make deb-check all pass. Closes #61 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,11 @@
|
||||
# tidewall.pck the game
|
||||
# tidewall-server runs the same game headless as a dedicated server, with
|
||||
# clean SIGTERM handling
|
||||
# tidewall starts the game from this folder, from any directory (R2)
|
||||
# install-desktop-entry.sh adds it to the user's application menu (R2)
|
||||
# tidewall.png the application icon
|
||||
# server.cfg an example server configuration
|
||||
# ENGINE-LICENSES.txt the Godot engine's licence and its third-party notices
|
||||
# LICENSE, LICENSE-ASSETS, README.md, PROVENANCE.md, VERSION
|
||||
set -euo pipefail
|
||||
|
||||
@@ -83,6 +87,12 @@ install -m 0644 LICENSE LICENSE-ASSETS "$package/"
|
||||
install -m 0644 packaging/server/server.cfg "$package/server.cfg"
|
||||
install -m 0644 packaging/dist/README.md "$package/README.md"
|
||||
install -m 0644 assets/PROVENANCE.md "$package/PROVENANCE.md"
|
||||
install -m 0755 packaging/dist/tidewall "$package/tidewall"
|
||||
install -m 0755 packaging/dist/install-desktop-entry.sh "$package/install-desktop-entry.sh"
|
||||
install -m 0644 assets/icons/app/tidewall-256.png "$package/tidewall.png"
|
||||
tools/godot.sh --script res://tools/engine_licenses.gd -- --out="$repo/$package/ENGINE-LICENSES.txt" >/dev/null 2>&1
|
||||
grep -q "Permission is hereby granted" "$package/ENGINE-LICENSES.txt" || { echo "dist FAIL: no engine licence text" >&2; exit 1; }
|
||||
chmod 0644 "$package/ENGINE-LICENSES.txt"
|
||||
printf 'Tidewall %s\ncommit %s\nengine Godot %s\n' "$version" "$commit" "$(cat tools/engine.version)" >"$package/VERSION"
|
||||
|
||||
# Reproducible-ish archive: fixed owner, sorted names, mtimes from the commit.
|
||||
|
||||
Reference in New Issue
Block a user