mirror of
https://github.com/runetfreedom/russia-blocked-geosite.git
synced 2026-05-08 14:53:21 +00:00
ads + ru only list
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -75,6 +75,12 @@ jobs:
|
||||
rm -rf ./additional/README.md
|
||||
mv ./additional/* ./community/data/
|
||||
|
||||
- name: Build ad block
|
||||
run: |
|
||||
curl -sSL $ADGUARD_DNS_REJECT_URL | perl -ne '/^\|\|([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+){1,64})\^$/ && print "$1\n"' | perl -ne 'print if not /^[0-9]{1,3}(\.[0-9]{1,3}){3}$/' > temp-reject.txt
|
||||
curl -sSL $PETERLOWE_REJECT_URL | perl -ne '/^127\.0\.0\.1\s([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+){1,64})$/ && print "$1\n"' >> temp-reject.txt
|
||||
cat temp-reject.txt | sort --ignore-case -u > ./community/data/category-ads-all
|
||||
|
||||
- name: Build Russia general blocked list
|
||||
run: |
|
||||
echo "include:antifilter-download-community" > ./community/data/ru-blocked
|
||||
@@ -82,11 +88,18 @@ jobs:
|
||||
|
||||
echo "include:antifilter-download" > ./community/data/ru-blocked-all
|
||||
echo "include:antifilter-download-community" >> ./community/data/ru-blocked-all
|
||||
echo "include:refilter" >> ./community/data/ru-blocked-all
|
||||
echo "include:refilter" >> ./community/data/ru-blocked-all
|
||||
|
||||
- name: Build Ru only list
|
||||
run: |
|
||||
mkdir -p ./community/data-ru
|
||||
cp ./community/data/{category-ads-all,private} ./community/data-ru/
|
||||
cat ./community/data/antifilter-download-community ./community/data/antifilter-download-community | sort --ignore-case -u > ./community/data-ru/ru-blocked
|
||||
|
||||
- name: Build geosite.dat file
|
||||
run: |
|
||||
cd custom || exit 1
|
||||
go run ./ --exportlists= --datname=geosite-ru-only.dat --togfwlist=ru-blocked --datapath=../community/data-ru
|
||||
go run ./ --exportlists=category-ads-all,google,youtube,discord,ru-blocked,ru-blocked-all,private --datapath=../community/data
|
||||
|
||||
- name: Move and zip files and generate sha256 hash
|
||||
|
||||
Reference in New Issue
Block a user