From 25d12fd1cf1e8a2ee2c1dcb5e9433056ca6ee81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90=E6=AE=87?= <95160953+xishang0128@users.noreply.github.com> Date: Mon, 10 Apr 2023 01:36:30 +0800 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index a3b4ac0473..4d9520f026 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -62,7 +62,7 @@ jobs: - name: Get geoip.dat relative files run: | - wget https://github.com/xishang0128/geoip/raw/release/geoip.dat + wget -O cn.dat https://github.com/xishang0128/geoip/raw/release/geoip.dat - name: Generate GFWList domains run: | @@ -211,15 +211,26 @@ jobs: cd sing-geoip || exit 1 sed -i 's/Dreamacro\/maxmind-geoip/xishang0128\/geoip/g' main.go go run -v . + mv geoip.dat cn.dat + + - name: Build geoip.db + env: + NO_SKIP: true + run: | + cd sing-geoip || exit 1 + sed -i 's/xishang0128\/geoip/Loyalsoldier\/geoip/g' main.go + go run -v . - name: Move and zip files run: | mkdir -p ./publish/ wget https://raw.githubusercontent.com/xishang0128/geoip/release/Country.mmdb -O ./publish/country.mmdb + install -Dp ./cn.dat ./publish/ install -Dp ./geoip.dat ./publish/ install -Dp ./custom/publish/geosite.dat ./publish/ install -Dp ./sing-geosite/geosite.db ./publish/ install -Dp ./sing-geoip/geoip.db ./publish/ + install -Dp ./sing-geoip/cn.db ./publish/ curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.yaml | sed '/^\s*#/d' > ./publish/cn_domain.yaml curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Proxy/Proxy_Domain.yaml | sed '/^\s*#/d' > ./publish/proxy.yaml cd ./publish || exit 1