#!/usr/bin/env bash # Build distributable desktop executables with the Godot export pipeline. # # Requirements: # - Godot 4.3 (or the version in project.godot `config/features`) on PATH, # with export templates installed (see docs/RELEASING.md). # - Run from the repository root. # # Produces: # build/step-line-linux-.x86_64 # build/step-line-windows-.exe # build/step-line-macos-.zip # set -euo pipefail GODOT="${GODOT:-godot}" VERSION="$(grep -oP 'config/version="\K[^"]+' project.godot)" mkdir -p build echo "==> Exporting Linux (x86_64)" "$GODOT" --headless --export-release "Linux" "build/step-line-linux-${VERSION}.x86_64" echo "==> Exporting Windows Desktop" "$GODOT" --headless --export-release "Windows Desktop" "build/step-line-windows-${VERSION}.exe" echo "==> Exporting macOS" "$GODOT" --headless --export-release "macOS" "build/step-line-macos-${VERSION}.zip" echo "" echo "Artifacts:" ls -la build/*"${VERSION}"* echo "" echo "Upload to: https://git.allucanget.biz/zwitschi/security-game/releases" echo "See docs/RELEASING.md for the full release checklist."