From 4a6ae2047483f1f4fb9561875e656b464e143192 Mon Sep 17 00:00:00 2001 From: Loyalsoldier Date: Sun, 5 Jan 2020 12:06:20 +0800 Subject: [PATCH] Update rules dat file URL Update rules dat file URL to GitHub default latest downloadable assets URL --- release/release-ci.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/release/release-ci.sh b/release/release-ci.sh index 9a6754b5..0afb3c51 100644 --- a/release/release-ci.sh +++ b/release/release-ci.sh @@ -60,13 +60,11 @@ popd pushd $GOPATH/src/v2ray.com/core/ # Update geoip.dat -GEOIP_TAG=$(curl --silent "https://api.github.com/repos/v2ray/geoip/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/download/${GEOIP_TAG}/geoip.dat" +curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/releases/latest/download/geoip.dat" sleep 1 # Update geosite.dat -GEOSITE_TAG=$(curl --silent "https://api.github.com/repos/v2ray/domain-list-community/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/download/${GEOSITE_TAG}/dlc.dat" +curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/releases/latest/download/dlc.dat" sleep 1 popd