diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 0bf23e32bb..a1870155ac 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -63,7 +63,6 @@ jobs: - name: Get geoip.dat relative files run: | wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat - wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat.sha256sum - name: Generate GFWList domains run: | @@ -159,12 +158,19 @@ jobs: curl -sSL $WIN_UPDATE | grep "0.0.0.0" | awk '{print $2}' > ./community/data/win-update curl -sSL $WIN_EXTRA | grep "0.0.0.0" | awk '{print $2}' > ./community/data/win-extra - - name: Add `meta` modification + - name: modify 'community/data' env: SED: sed '/^\s*#/d' | sed 's/DOMAIN,//g' | sed 's/DOMAIN-SUFFIX,//g' | sed 's/DOMAIN-KEYWORD,/keyword:/g' + run: | + curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/SteamCN/SteamCN.list | ${{ env.SED }} > steamcn.txt + while read line; do grep -q "$line @cn" ./community/data/steam || sed -i "/$line/ s/$/ @cn/" ./community/data/steam; done < steamcn.txt + cat ./community/data/steam + + - name: Add `meta` data + env: + SED: sed '/^\s*#/d' | sed 's/DOMAIN,/full:/g' | sed 's/DOMAIN-SUFFIX,//g' | sed 's/DOMAIN-KEYWORD,/keyword:/g' run: | curl -sSL https://raw.githubusercontent.com/xishang0128/rules/main/biliintl.list > ./community/data/biliintl - curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/SteamCN/SteamCN.list | ${{ env.SED }} > ./community/data/steam-cn curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/PrivateTracker/PrivateTracker.list | ${{ env.SED }} > ./community/data/tracker - name: Build geosite.dat file diff --git a/README.md b/README.md index 7e7b0391b5..d40d854e37 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,11 @@ ### geosite.dat,geosite.db 用法同 [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) - - `geosite:cn`类别的源替换为 [ChinaMax_Domain](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/ChinaMax) + - `geosite:cn` 源替换为 [ChinaMax_Domain](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/ChinaMax) + - `geosite:steam@cn` 类别添加 [SteamCN](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/SteamCN) 的内数据 - 新增类别 - `geosite:biliintl` 来源 [biliintl](https://raw.githubusercontent.com/xishang0128/rules/main/biliintl.list) - - `geosite:steam-cn` 来源 [SteamCN](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/SteamCN) + ## 示例 ```yaml - GEOSITE,category-ads-all,REJECT @@ -87,3 +88,4 @@ - [@PeterLowe/adservers](https://pgl.yoyo.org/adservers) - [@DanPollock/hosts](https://someonewhocares.org/hosts) - [@crazy-max/WindowsSpyBlocker](https://github.com/crazy-max/WindowsSpyBlocker) +- [@blackmatrix7/ios_rule_script](https://github.com/blackmatrix7/ios_rule_script)