Skip to content

Commit

Permalink
Merge pull request #2161 from Loyalsoldier/patch-1
Browse files Browse the repository at this point in the history
Update rules dat file URL
  • Loading branch information
Richard Chen authored Jan 5, 2020
2 parents bda694d + e63f15f commit ad0ad80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release/release-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ad0ad80

Please sign in to comment.