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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user