diff --git a/README.md b/README.md index b01d3d591..b1a79bb5c 100644 --- a/README.md +++ b/README.md @@ -127,12 +127,14 @@ when you can't use the precompiled binary directly, we provide an automated buil ### Compiling on Android (Termux Installation) - [First, Install and run Termux from F-Droid](https://f-droid.org/en/packages/com.termux/) -## Termux Quick Setup Script -You can use this auto-installation script to quickly install and build everything and launch KoboldCpp with a model. +## Termux Quick Setup Script (Easy Setup) +- You can use this auto-installation script to quickly install and build everything and launch KoboldCpp with a model. Simply run: -`curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh` -and follow the prompts displayed on screen. -## Termux Manual Instructions +``` +curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh +``` +and it will install everything required. Alternatively, you can download the above `android_install.sh` script to file, then do `chmod +x` and run it interactively. +## Termux Manual Instructions (DIY Setup) - Open termux and run the command `apt update` - Install dependency `apt install openssl` - Install other dependencies with `pkg install wget git python` diff --git a/android_install.sh b/android_install.sh index 4e860f317..b9d58d652 100644 --- a/android_install.sh +++ b/android_install.sh @@ -11,7 +11,11 @@ fi echo "--------------------------------------------" echo "KoboldCPP Quick Installer for Termux (Android only!)" echo "--------------------------------------------" -if [ -t 0 ]; then +if [ $# -ge 1 ]; then + choice="$1" + echo "Using command-line argument: $choice" +# Check if running interactively (terminal input) +elif [ -t 0 ]; then # Running interactively echo "[1] - Proceed to install and launch with default model Gemma3-1B" echo "[2] - Proceed to install without a model, you can download one later."