mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-26 19:32:55 +00:00
Fix when subscription download timeout before complete, the parser will still try to parse downloaded content. Change default regex library to PCRE2. Change Quantumult X "url-test" equivalent to "available". Optimize codes. Update build scripts.
21 lines
578 B
Bash
21 lines
578 B
Bash
#!/bin/bash
|
|
set -xe
|
|
|
|
apt update
|
|
apt install -y git cmake clang pkg-config
|
|
apt install -y libevent libcurl openssl pcre2
|
|
|
|
git clone https://github.com/jbeder/yaml-cpp
|
|
cd yaml-cpp
|
|
cmake -DCMAKE_INSTALL_PREFIX=/data/data/com.termux/files/usr -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF .
|
|
make install -j3
|
|
cd ..
|
|
|
|
git clone https://github.com/tencent/rapidjson
|
|
cd rapidjson
|
|
cp -r include/* /data/data/com.termux/files/usr/include/
|
|
cd ..
|
|
|
|
curl -LO https://raw.githubusercontent.com/jpcre2/jpcre2/release/src/jpcre2.hpp
|
|
cp jpcre2.hpp /data/data/com.termux/files/usr/include/
|