R1: Linux export pipeline (make dist, make dist-check)

make dist (tools/dist.sh) checks the official export templates against
tools/engine.sha512, installs only the Linux x86_64 ones into the
repo-local engine data, exports the "Linux" preset, checks the binary is
the verified release template, and packs
build/dist/tidewall-<version>-linux-x86_64.tar.gz with a .sha256:
tidewall.x86_64, tidewall.pck, a tidewall-server launcher that runs the
same game headless with clean SIGTERM handling, an example server.cfg,
README, VERSION, licences and asset provenance.

BuildInfo gives the version (application/config/version, now 0.9.0) and
the commit (build_commit.txt written by make dist, or .git in a
checkout). The main menu shows "Version 0.9.0 (commit)" and the server's
start log line carries version and commit.

make dist-check (tools/dist_check.sh) unpacks the package outside the
repo with HOME and XDG dirs in a temp dir and runs smoke against it
(new SMOKE_DIST mode), a whole bot match, and the exported game joining
the exported server over loopback.

A release template crashes on a call on null (exit 139) and ignores
invalid calls, so in package mode smoke's fault check expects only a
non-zero exit.

Closes #60

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 23:51:36 -05:00
co-authored by Claude Opus 5.5
parent 9ce0865c9b
commit 4439d9a84f
18 changed files with 533 additions and 9 deletions
+41
View File
@@ -0,0 +1,41 @@
# Tidewall for Linux (x86_64)
A free and open-source build-and-survive battle royale. The sea rises in phases and
swallows the low ground, so the last dry land keeps getting higher and smaller.
## Play
./tidewall.x86_64
The game opens on its main menu: practice against bots offline, or join a server on
your network or by address. It needs a Vulkan-capable GPU and driver (Forward+). On
hardware without Vulkan, start it with `--rendering-driver opengl3` to use OpenGL.
Settings and key bindings are saved in `~/.local/share/godot/app_userdata/Tidewall/`.
## Run a server
./tidewall-server --config=server.cfg
`server.cfg` is an example: it takes players over UDP on port 24650, answers LAN
discovery on 24651, and fills empty places with bots. Every option can also be given
on the command line (`--port=24650`, `--bots=1`, `--name=...`). SIGTERM or Ctrl+C stops
the server cleanly. Logs are JSON lines on standard output.
## What's here
| File | |
|---|---|
| `tidewall.x86_64` | The Godot 4.7.2 engine (official release template) |
| `tidewall.pck` | The game |
| `tidewall-server` | Runs the same game headless as a dedicated server |
| `server.cfg` | Example server configuration |
| `VERSION` | Version, commit and engine |
| `PROVENANCE.md` | How every model, texture and sound was made |
## Licence
Code: GPL-3.0-or-later (`LICENSE`). Art and audio, all generated by scripts in the
source repository: CC BY-SA 4.0 (`LICENSE-ASSETS`). The Godot engine is MIT-licensed.
Source: https://gitea.eom.dev/claude/tidewall
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
# Runs a Tidewall dedicated server from the release package, headless, and turns
# SIGTERM or SIGINT into a clean stop: the server tells everyone connected it is
# shutting down, logs its statistics and exits 0. The engine can't catch signals
# itself, so this wrapper creates the server's --stop-file when one arrives, and kills
# the server only if it hasn't gone after TIDEWALL_STOP_SECONDS (default 15).
#
# ./tidewall-server [server options...] e.g. --config=server.cfg (options in server.cfg)
#
# TIDEWALL_STATE a writable directory for the engine's own files and the stop file
# (default $XDG_STATE_HOME/tidewall-server, else
# ~/.local/state/tidewall-server)
set -u
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
state="${TIDEWALL_STATE:-${XDG_STATE_HOME:-$HOME/.local/state}/tidewall-server}"
grace="${TIDEWALL_STOP_SECONDS:-15}"
stop_file="$state/stop"
mkdir -p "$state/data" "$state/config" "$state/cache"
rm -f "$stop_file"
export XDG_DATA_HOME="$state/data" XDG_CONFIG_HOME="$state/config" XDG_CACHE_HOME="$state/cache"
"$here/tidewall.x86_64" --headless -- --server --stop-file="$stop_file" "$@" &
child=$!
request_stop() {
touch "$stop_file"
( sleep "$grace"; kill -KILL "$child" 2>/dev/null ) &
}
trap request_stop TERM INT
wait "$child"
code=$?
while kill -0 "$child" 2>/dev/null; do
wait "$child"
code=$?
done
exit "$code"