From f6610c5999cf9045bc86684653eb1107632ec1d1 Mon Sep 17 00:00:00 2001 From: MkQtS <81752398+MkQtS@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:55:47 +0800 Subject: [PATCH] Small improve --- .github/workflows/sync-to-dist.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-to-dist.yml b/.github/workflows/sync-to-dist.yml index 251257c84b..7be343c278 100644 --- a/.github/workflows/sync-to-dist.yml +++ b/.github/workflows/sync-to-dist.yml @@ -48,14 +48,16 @@ jobs: URL='https://github.com/MetaCubeX/mihomo/releases/download/Prerelease-Alpha/mihomo-linux-'$ARCH'-'$MIHOMO_VER'.deb' # e.g. https://github.com/MetaCubeX/mihomo/releases/download/Prerelease-Alpha/mihomo-linux-amd64-alpha-3e966e8.deb wget -q -O ./mihomo.deb "$URL" - sudo apt install ./mihomo.deb + sudo apt-get install ./mihomo.deb rm -f ./mihomo.deb } - name: Compile binaries for sing-box/mihomo run: | + echo 'Compiling sing-box rule-set...' sing-box rule-set convert --type adguard ./anti-ad-adguard.txt --output ./anti-ad-sing-box.srs sha256sum ./anti-ad-sing-box.srs + echo 'Compiling mihomo ruleset...' mihomo convert-ruleset domain yaml ./anti-ad-clash.yaml ./anti-ad-mihomo.mrs sha256sum ./anti-ad-mihomo.mrs