Spaces:
Sleeping
Sleeping
File size: 1,199 Bytes
b3916e9 7a838c2 1d55316 c028624 b3916e9 c028624 b3916e9 7a838c2 b3916e9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/data/data/com.termux/files/usr/bin/bash
# -------------------------------------------------------------
# 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 ""
|