Add RED4ext release packaging

This commit is contained in:
2026-06-27 04:20:40 -05:00
parent c725e7ebc3
commit 83cf10495e
6 changed files with 188 additions and 96 deletions
+4
View File
@@ -8,5 +8,9 @@ plugin_out="$game_dir/red4ext/plugins/EdgeWeightGPS"
dll_path="$("$repo_root/tools/build_red4ext_shim.sh" | tail -n 1)"
mkdir -p "$plugin_out"
install -m 0644 "$dll_path" "$plugin_out/EdgeWeightGPS.dll"
install -m 0644 "$repo_root/presets/momentum/default.bin" "$plugin_out/momentum_weights.bin"
install -m 0644 "$repo_root/presets/solver_weights/vanilla.bin" "$plugin_out/solver_weights.bin"
printf 'Installed %s\n' "$plugin_out/EdgeWeightGPS.dll"
printf 'Installed %s\n' "$plugin_out/momentum_weights.bin"
printf 'Installed %s\n' "$plugin_out/solver_weights.bin"
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
timestamp="$(date +%Y%m%d-%H%M%S)"
staging="$repo_root/build/package/EdgeWeightGPS-$timestamp"
dist_dir="$repo_root/dist"
zip_path="$dist_dir/EdgeWeightGPS-red4ext-$timestamp.zip"
dll_path="$("$repo_root/tools/build_red4ext_shim.sh" | tail -n 1)"
plugin_out="$staging/red4ext/plugins/EdgeWeightGPS"
mkdir -p "$plugin_out" "$dist_dir"
install -m 0644 "$dll_path" "$plugin_out/EdgeWeightGPS.dll"
install -m 0644 "$repo_root/presets/momentum/default.bin" "$plugin_out/momentum_weights.bin"
install -m 0644 "$repo_root/presets/solver_weights/vanilla.bin" "$plugin_out/solver_weights.bin"
install -m 0644 "$repo_root/packaging/EdgeWeightGPS-README.txt" "$plugin_out/README.txt"
(
cd "$staging"
python3 -m zipfile -c "$zip_path" red4ext
)
printf '%s\n' "$zip_path"