Spaces:
Sleeping
Sleeping
Naufal Arhab
fix(termux): pin precompiled pydantic-core wheel from TUR for Python 3.13 aarch64
c028624 Download setup_termux.sh from agus1111/Perps-Terminal: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/agus1111/Perps-Terminal/resolve/main/setup_termux.sh
- Command line
-
hf download hf://spaces/agus1111/Perps-Terminal/setup_termux.sh
-
curl -L -o setup_termux.sh https://huggingface.co/spaces/agus1111/Perps-Terminal/resolve/main/setup_termux.sh
1.2 kB
| # ------------------------------------------------------------- | |
| # Setup Otomatis Perps AI Backend di Termux (Android) | |
| # ------------------------------------------------------------- | |
| set -e | |
| echo "==================================================" | |
| echo " 🚀 Memulai Setup Perps AI Backend di HP Android" | |
| echo "==================================================" | |
| echo "" | |
| echo "📦 1. Memperbarui package repository Termux..." | |
| pkg update -y | |
| echo "📦 2. Menginstall dependensi sistem dasar..." | |
| pkg install -y python git postgresql | |
| echo "📦 3. Menginstall dependensi Python backend (menggunakan pre-compiled wheels Termux)..." | |
| cd "$(dirname "$0")/backend" | |
| pip install --no-cache-dir --extra-index-url https://termux-user-repository.github.io/pypi/ "pydantic-core==2.41.5" | |
| pip install --no-cache-dir -r requirements-termux.txt | |
| echo "" | |
| echo "🔋 4. Mengaktifkan Wake-Lock agar tidak dimatikan Android..." | |
| termux-wake-lock | |
| echo "" | |
| echo "==================================================" | |
| echo " ✅ Setup Selesai 100%!" | |
| echo "==================================================" | |
| echo "" | |
| echo "Cara Menjalankan:" | |
| echo " bash run_termux.sh" | |
| echo "" | |