fix: generate all 19 strategies/*.conf from upstream .bat files

- Add Python converter (convert_bat.py) + PowerShell wrapper generator
- All general*.sh now point to run_strategy.sh <name>
- Normalize filenames: spaces → underscores (FAKE_TLS_AUTO_ALT etc.)
- Fix sync_from_upstream.sh: underscores in names
- Update README: document modular architecture, sync, hosts
This commit is contained in:
2026-05-10 19:57:53 +04:00
parent 7aeb16856d
commit 1bca276c7f
40 changed files with 478 additions and 202 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ parse_bat_to_conf() {
local name_raw
name_raw=$(basename "$src" .bat)
local name
name=$(echo "$name_raw" | sed -E 's/general[[:space:]]*//; s/\(|\)//g; s/^[[:space:]]+|[[:space:]]+$//g')
name=$(echo "$name_raw" | sed -E 's/general[[:space:]]*//; s/\(|\)//g; s/^[[:space:]]+|[[:space:]]+$//g; s/ /_/g')
[[ -z "$name" ]] && name="general"
local conf_name="$STRATEGIES_DIR/${name}.conf"