mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
feat(multiplayer): add Steam transport foundation
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
client_godot="${COSMIC_CLASH_STEAM_CLIENT_GODOT:?set COSMIC_CLASH_STEAM_CLIENT_GODOT to the pinned GodotSteam client executable}"
|
||||
server_godot="${COSMIC_CLASH_STEAM_SERVER_GODOT:?set COSMIC_CLASH_STEAM_SERVER_GODOT to the pinned GodotSteam server executable}"
|
||||
output_dir="$root_dir/steam/build"
|
||||
|
||||
for executable in "$client_godot" "$server_godot"; do
|
||||
test -x "$executable"
|
||||
"$executable" --headless --path "$root_dir/Game" --editor --import --quit
|
||||
"$executable" --headless --path "$root_dir/Game" res://tests/steam_template_smoke.tscn
|
||||
done
|
||||
|
||||
mkdir -p "$output_dir"
|
||||
"$client_godot" --headless --path "$root_dir/Game" --export-release "Linux Steam Client" "$output_dir/CosmicClashSteam.x86_64"
|
||||
"$server_godot" --headless --path "$root_dir/Game" --export-release "Linux Steam Dedicated Server" "$output_dir/CosmicClashSteamServer.x86_64"
|
||||
echo "Steam template verification passed: $output_dir"
|
||||
Reference in New Issue
Block a user