Add dedicated server packaging
This commit is contained in:
commit
b9c031dfab
13 changed files with 275 additions and 0 deletions
27
scripts/stage-build.sh
Executable file
27
scripts/stage-build.sh
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue