Add dedicated server packaging

This commit is contained in:
Alexander Sellite 2026-08-10 13:56:40 -04:00
commit b9c031dfab
13 changed files with 275 additions and 0 deletions

27
scripts/stage-build.sh Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 1 ]]; then
echo "Usage: $0 /path/to/server-linux-x86_64" >&2
exit 2
fi
source_dir="${1%/}"
repository_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
destination_dir="${repository_dir}/dist"
for filename in NETfishingServer.x86_64 NETfishingServer.pck; do
if [[ ! -f "${source_dir}/${filename}" ]]; then
echo "Missing ${source_dir}/${filename}" >&2
exit 1
fi
done
install -m 0755 "${source_dir}/NETfishingServer.x86_64" \
"${destination_dir}/NETfishingServer.x86_64"
install -m 0644 "${source_dir}/NETfishingServer.pck" \
"${destination_dir}/NETfishingServer.pck"
cd -- "${destination_dir}"
sha256sum NETfishingServer.x86_64 NETfishingServer.pck > SHA256SUMS
echo "Staged dedicated server build in ${destination_dir}"