test(multiplayer): detect macOS Godot bundle

This commit is contained in:
Josh Creek
2026-09-01 17:13:18 +01:00
parent 0787702f23
commit 98ff2aed81
2 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -4,7 +4,15 @@ set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root_dir"
godot_bin="${GODOT_BIN:-godot}"
if [[ -n "${GODOT_BIN:-}" ]]; then
godot_bin="$GODOT_BIN"
elif command -v godot >/dev/null 2>&1; then
godot_bin="$(command -v godot)"
elif [[ -x "/Applications/Godot.app/Contents/MacOS/Godot" ]]; then
godot_bin="/Applications/Godot.app/Contents/MacOS/Godot"
else
godot_bin="godot"
fi
logs_dir="$(mktemp -d "${TMPDIR:-/tmp}/cosmic-clash-enet.XXXXXX")"
pids=()
# Comma-separated selection for local debugging; CI leaves this unset and