add more notifications

This commit is contained in:
loyalsoldier 2019-12-10 16:56:49 +08:00
parent 11910af39d
commit 0a32b95979

View File

@ -23,6 +23,7 @@ cd $GOPATH/src/$GEOIP_REPO
echo -e "${GREEN}>>> building geoip.dat file...${NC}" echo -e "${GREEN}>>> building geoip.dat file...${NC}"
go run main.go go run main.go
mv geoip.dat $V2RAY_FOLDER/geoip.dat mv geoip.dat $V2RAY_FOLDER/geoip.dat
echo -e "${GREEN}>>> Finished geoip.dat ${NC}"
echo -e "${GREEN}>>> downloading $GEOSITE_REPO...${NC}" echo -e "${GREEN}>>> downloading $GEOSITE_REPO...${NC}"
go get -insecure -v -u -d $GEOSITE_REPO go get -insecure -v -u -d $GEOSITE_REPO
@ -31,24 +32,25 @@ cd $GOPATH/src/$GEOSITE_REPO
echo -e "${GREEN}>>> generating GFWList...${NC}" echo -e "${GREEN}>>> generating GFWList...${NC}"
curl -sSL $getGFWLIST_SCRIPT \ curl -sSL $getGFWLIST_SCRIPT \
| bash -s -- -l -o $GOPATH/src/$GEOSITE_REPO/data/gfwlist | bash -s -- -l -o $GOPATH/src/$GEOSITE_REPO/data/gfwlist
echo -e "${GREEN}>>> Finished GFWList ${NC}"
echo -e "${GREEN}>>> generating Chinese domains list...${NC}" echo -e "${GREEN}>>> generating Chinese domains list...${NC}"
curl -sSL $CHINA_DOMAINS_URL \ curl -sSL $CHINA_DOMAINS_URL \
| awk -F '/' '{print $2}' \ | awk -F '/' '{print $2}' \
> $GOPATH/src/$GEOSITE_REPO/data/chinalist > $GOPATH/src/$GEOSITE_REPO/data/chinalist
echo -e "${GREEN}>>> Finished Chinalist ${NC}"
echo -e "${GREEN}>>> generating Adblock domains list...${NC}" echo -e "${GREEN}>>> generating AdBlock domains list...${NC}"
curl -sSL $ADBLOCK_DOMAINS_URL \ curl -sSL $ADBLOCK_DOMAINS_URL \
| grep -Eov '^(\d{1,3}\.){3}\d{1,3}' \ | grep -Eov '^(\d{1,3}\.){3}\d{1,3}' \
| grep -Eov '^[^.]$' \ | grep -Eov '^[^.]$' \
| grep -Eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \ | grep -Eo '^(([a-zA-Z0-9]+[a-zA-Z0-9-]*)+\.)+[a-zA-Z0-9]{2,}$' \
> $GOPATH/src/$GEOSITE_REPO/data/adblocklist > $GOPATH/src/$GEOSITE_REPO/data/adblocklist
echo -e "${GREEN}>>> Finished AdBlocklist ${NC}"
echo -e "${GREEN}>>> building geosite.dat file...${NC}" echo -e "${GREEN}>>> building geosite.dat file...${NC}"
go run main.go go run main.go
mv dlc.dat $V2RAY_FOLDER/geosite.dat mv dlc.dat $V2RAY_FOLDER/geosite.dat
echo -e "${GREEN}>>> Finished geosite.dat ${NC}"
echo -e "${GREEN}完成啦!🌈${NC}" echo -e "${GREEN}完成啦!🌈${NC}"
go version
go get -v -t -d github.com/v2ray/domain-list-community/...