Rebrand dedicated server as straywild
This commit is contained in:
parent
481997b42c
commit
c1b228475d
14 changed files with 132 additions and 132 deletions
|
|
@ -2,7 +2,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
if [[ $# -ne 4 ]]; then
|
||||
echo "Usage: $0 /path/to/server-linux-x86_64 GAME_VERSION GAME_COMMIT /path/to/netfishing" >&2
|
||||
echo "Usage: $0 /path/to/server-linux-x86_64 GAME_VERSION GAME_COMMIT /path/to/straywild" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
|
@ -30,17 +30,17 @@ if [[ ! "${game_commit}" =~ ^[0-9a-f]{40}$ ]]; then
|
|||
exit 2
|
||||
fi
|
||||
if [[ ! -f "${game_repository}/project.godot" ]]; then
|
||||
echo "The NETfishing game repository was not found: ${game_repository}" >&2
|
||||
echo "The straywild game repository was not found: ${game_repository}" >&2
|
||||
exit 2
|
||||
fi
|
||||
resolved_game_commit="$(git -C "${game_repository}" rev-parse HEAD)"
|
||||
if [[ "${resolved_game_commit}" != "${game_commit}" ]]; then
|
||||
echo "The NETfishing repository HEAD does not match GAME_COMMIT." >&2
|
||||
echo "The straywild repository HEAD does not match GAME_COMMIT." >&2
|
||||
exit 2
|
||||
fi
|
||||
if ! git -C "${game_repository}" diff --quiet \
|
||||
|| ! git -C "${game_repository}" diff --cached --quiet; then
|
||||
echo "The NETfishing repository must be clean before staging notices." >&2
|
||||
echo "The straywild repository must be clean before staging notices." >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! "${packaging_commit}" =~ ^[0-9a-f]{40}$ ]]; then
|
||||
|
|
@ -48,7 +48,7 @@ if [[ ! "${packaging_commit}" =~ ^[0-9a-f]{40}$ ]]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
for filename in NETfishingServer.x86_64 NETfishingServer.pck; do
|
||||
for filename in straywildServer.x86_64 straywildServer.pck; do
|
||||
if [[ ! -f "${source_dir}/${filename}" ]]; then
|
||||
echo "Missing ${source_dir}/${filename}" >&2
|
||||
exit 1
|
||||
|
|
@ -56,10 +56,10 @@ for filename in NETfishingServer.x86_64 NETfishingServer.pck; do
|
|||
done
|
||||
|
||||
install -d -m 0755 "${destination_dir}"
|
||||
install -m 0755 "${source_dir}/NETfishingServer.x86_64" \
|
||||
"${destination_dir}/NETfishingServer.x86_64"
|
||||
install -m 0644 "${source_dir}/NETfishingServer.pck" \
|
||||
"${destination_dir}/NETfishingServer.pck"
|
||||
install -m 0755 "${source_dir}/straywildServer.x86_64" \
|
||||
"${destination_dir}/straywildServer.x86_64"
|
||||
install -m 0644 "${source_dir}/straywildServer.pck" \
|
||||
"${destination_dir}/straywildServer.pck"
|
||||
rm -rf -- "${licenses_dir}"
|
||||
install -d -m 0755 "${licenses_dir}"
|
||||
install -m 0644 "${game_repository}/LICENSE" \
|
||||
|
|
@ -76,8 +76,8 @@ install -m 0644 "${game_repository}/ui/fonts/Seattle-Avenue-LICENSE.txt" \
|
|||
"${licenses_dir}/Seattle-Avenue-LICENSE.txt"
|
||||
|
||||
cd -- "${destination_dir}"
|
||||
executable_sha256="$(sha256sum NETfishingServer.x86_64 | awk '{print $1}')"
|
||||
pck_sha256="$(sha256sum NETfishingServer.pck | awk '{print $1}')"
|
||||
executable_sha256="$(sha256sum straywildServer.x86_64 | awk '{print $1}')"
|
||||
pck_sha256="$(sha256sum straywildServer.pck | awk '{print $1}')"
|
||||
|
||||
apply_umask="$(umask)"
|
||||
umask 022
|
||||
|
|
@ -94,19 +94,19 @@ printf '%s\n' \
|
|||
cat >SOURCE-CODE.md <<EOF
|
||||
# Corresponding source
|
||||
|
||||
NETfishing dedicated game-server code is licensed under GPL-3.0-or-later.
|
||||
straywild dedicated game-server code is licensed under GPL-3.0-or-later.
|
||||
|
||||
Source repository: https://forge.makearmy.io/woofmeow/netfishing
|
||||
Source repository: https://forge.makearmy.io/woofmeow/straywild
|
||||
Exact game source revision: ${game_commit}
|
||||
|
||||
Packaging source:
|
||||
https://forge.makearmy.io/woofmeow/netfishing-dedicated-server
|
||||
https://forge.makearmy.io/woofmeow/straywild-dedicated-server
|
||||
Exact packaging source revision: ${packaging_commit}
|
||||
EOF
|
||||
umask "${apply_umask}"
|
||||
sha256sum \
|
||||
NETfishingServer.x86_64 \
|
||||
NETfishingServer.pck \
|
||||
straywildServer.x86_64 \
|
||||
straywildServer.pck \
|
||||
BUILD_INFO \
|
||||
SOURCE-CODE.md \
|
||||
licenses/GPL-3.0-or-later.txt \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue