From 4444dbbffdf505b6c06d62d73ac30ee964fcc146 Mon Sep 17 00:00:00 2001 From: BROBIRD <7692707+BROBIRD@users.noreply.github.com> Date: Mon, 1 Jun 2026 23:24:00 +0800 Subject: [PATCH] fix some bugs --- .github/workflows/update.yml | 2 +- scripts/gfwlist_parser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 4df5e90..b72ddce 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -31,7 +31,7 @@ jobs: echo "Attempt $i/$MAX_RETRIES to download mihomo..." if TAG=$(curl -s --fail https://api.github.com/repos/MetaCubeX/mihomo/releases/latest | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/'); then echo "Latest mihomo version: $TAG" - if curl -L --fail -o mihomo.tar.gz "https://github.com/MetaCubeX/mihomo/releases/download/${TAG}/mihomo-linux-amd64-${TAG}.gz"; then + if curl -L --fail -o mihomo.tar.gz "https://github.com/MetaCubeX/mihomo/releases/download/${TAG}/mihomo-linux-amd64-${TAG}.tar.gz"; then echo "Download succeeded" if tar -xzf mihomo.tar.gz; then chmod +x mihomo diff --git a/scripts/gfwlist_parser.py b/scripts/gfwlist_parser.py index b285434..49ce8e1 100644 --- a/scripts/gfwlist_parser.py +++ b/scripts/gfwlist_parser.py @@ -103,9 +103,9 @@ def generate_acl_file(domains, filename, title="GFWList Rules"): content = header + '\n'.join(rules) + '\n' write_file(filename, content) -def generate_clash_provider_yaml(domains, filename, title="Proxy"): +def generate_clash_provider_yaml(domains, filename, title="payload"): unique_domains = sorted(set(domains)) - content = f"{title}:\n - https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/Ruleset/ProxyGFWlist.list\n" + content = f"{title}:\n" for domain in unique_domains: content += f" - DOMAIN-SUFFIX,{domain}\n" write_file(filename, content)