Add auto-sync script for rules

Update build scripts.
This commit is contained in:
Tindy X
2023-10-03 22:41:44 +08:00
parent b3ea72de6e
commit 1b18bcab08
7 changed files with 127 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -xe
apk add gcc g++ build-base linux-headers cmake make autoconf automake libtool python2
apk add gcc g++ build-base linux-headers cmake make autoconf automake libtool python2 python3
apk add mbedtls-dev mbedtls-static zlib-dev rapidjson-dev libevent-dev libevent-static zlib-static pcre2-dev
git clone https://github.com/curl/curl --depth=1 --branch curl-7_88_1
@@ -46,6 +46,10 @@ make -j2
rm subconverter
g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o") -static -lpcre2-8 -levent -lyaml-cpp -L/usr/lib64 -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lz -l:quickjs/libquickjs.a -llibcron -O3 -s
python3 -m ensurepip
python3 -m pip install gitpython
python3 scripts/update_rules.py -c scripts/rules_config.conf
cd base
chmod +rx subconverter
chmod +r ./*