docs: add termux to readme
This commit is contained in:
@@ -22,6 +22,9 @@ You can get proxies obtained using this project in [monosans/proxy-list](https:/
|
||||
|
||||
### Binary
|
||||
|
||||
> [!NOTE]
|
||||
> The instructions for Termux are below.
|
||||
|
||||
1. Download the archive for your platform from [nightly.link](https://nightly.link/monosans/proxy-scraper-checker/workflows/ci/main?preview). If you are not sure which archive you need, use [the table](https://doc.rust-lang.org/beta/rustc/platform-support.html).
|
||||
1. Unpack the archive into a separate folder.
|
||||
1. Edit `config.toml` to your preference.
|
||||
@@ -52,6 +55,21 @@ You can get proxies obtained using this project in [monosans/proxy-list](https:/
|
||||
docker compose up --no-log-prefix --remove-orphans
|
||||
```
|
||||
|
||||
### Termux
|
||||
|
||||
1. Download Termux from [F-Droid](https://f-droid.org/en/packages/com.termux/). [Don't download it from Google Play](https://github.com/termux/termux-app#google-play-store-experimental-branch).
|
||||
1. Run the following command. It will automatically download and install `proxy-scraper-checker`.
|
||||
|
||||
```bash
|
||||
bash <(curl -fsSL 'https://raw.githubusercontent.com/monosans/proxy-scraper-checker/main/termux.sh')
|
||||
```
|
||||
|
||||
1. Edit `~/proxy-scraper-checker/config.toml` to your preference using a text editor (vim/nano).
|
||||
1. To run `proxy-scraper-checker` use the following command:
|
||||
```bash
|
||||
cd ~/proxy-scraper-checker && ./proxy-scraper-checker
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
project_name="proxy-scraper-checker"
|
||||
base_path="${HOME}"
|
||||
install_path="${base_path}/${project_name}"
|
||||
download_path="${TMPDIR}/${project_name}.zip"
|
||||
|
||||
abi=$(getprop ro.product.cpu.abi)
|
||||
|
||||
case "${abi}" in
|
||||
"arm64-v8a")
|
||||
target="aarch64-linux-android"
|
||||
;;
|
||||
"armeabi-v7a")
|
||||
if grep -qi 'neon' /proc/cpuinfo; then
|
||||
target="thumbv7neon-linux-androideabi"
|
||||
else
|
||||
target="armv7-linux-androideabi"
|
||||
fi
|
||||
;;
|
||||
"armeabi")
|
||||
target="arm-linux-androideabi"
|
||||
;;
|
||||
"x86")
|
||||
target="i686-linux-android"
|
||||
;;
|
||||
"x86_64")
|
||||
target="x86_64-linux-android"
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported CPU ABI: ${abi}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
curl -fLo "${download_path}" "https://nightly.link/monosans/proxy-scraper-checker/workflows/ci/main/proxy-scraper-checker-${target}.zip"
|
||||
mkdir "${install_path}"
|
||||
unzip -d "${install_path}" "${download_path}"
|
||||
rm -f "${download_path}"
|
||||
printf "%s installed successfully.\nRun 'cd %s && ./%s'.\n" "${project_name}" "${install_path}" "${project_name}"
|
||||
Reference in New Issue
Block a user