add scripts to easily install reqs for dual mode switch and termux

This commit is contained in:
thedragonsinn
2024-06-25 15:22:16 +05:30
parent f845243c65
commit 7ec36a4548
6 changed files with 62 additions and 12 deletions

12
scripts/install_termux_reqs.sh Executable file
View File

@@ -0,0 +1,12 @@
if ! echo "${PATH}" | grep -qi "com.termux"; then
echo "Not a termux Env, Skipping..."
exit
fi
ub_core_req_url="https://github.com/thedragonsinn/ub-core/raw/main/requirements.txt"
curl -fsSL ${ub_core_req_url} | grep -Ev "uvloop|psutil" | xargs pip install
./scripts/install_ub_core.sh "--no-deps"
grep -Ev "google-generativeai|pillow" req.txt | xargs -n 1 pip install

7
scripts/install_ub_core.sh Executable file
View File

@@ -0,0 +1,7 @@
dual_mode_arg=""
if [ ! -z "${USE_DUAL_BRANCH}" ]; then
dual_mode_arg="@dual_mode"
fi
pip -q install --no-cache-dir --force-reinstall $1 "git+https://github.com/thedragonsinn/ub-core${dual_mode_arg}"