refactor: module-based strategy architecture

- Add sync_from_upstream.sh: clones Flowseal repo, merges lists/hosts, auto-detects new .bat strategies
- Add strategies/*.conf config files (extracted from .bat)
- Rewrite run_strategy.sh: loads .conf, substitutes %BIN%/%LISTS%/%GAME_*% using sed (no envsubst)
- Rewrite update.sh: pipeline is now sync→rebuild→test→install
- Add ensure_wrappers.sh: auto-creates general_*.sh wrappers from .conf
- Fix all 'local outside function' runtime bugs
- install.sh now calls sync_from_upstream.sh first
This commit is contained in:
2026-05-10 19:46:14 +04:00
parent b75d75931d
commit 7aeb16856d
6 changed files with 477 additions and 535 deletions
+3
View File
@@ -30,6 +30,9 @@ if [[ "${ans:-Y}" != [yY]* ]]; then
exit 0
fi
# Step 0: Sync upstream lists and strategies
bash "$SCRIPT_DIR/sync_from_upstream.sh" || true
# Step 1: Setup
echo ""
echo "[*] Step 1/4: Running setup..."