termux.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/bash
  2. echo -e "\033[2J\033[3;1f"
  3. eval "cat ~/Hikka/assets/download.txt"
  4. printf "\n\n\033[1;35mHikka is being installed... ✨\033[0m"
  5. echo -e "\n\n\033[0;96mInstalling base packages...\033[0m"
  6. eval "pkg i git python libjpeg-turbo openssl -y"
  7. printf "\r\033[K\033[0;32mPackages ready!\e[0m\n"
  8. echo -e "\033[0;96mInstalling Pillow...\033[0m"
  9. if eval "lscpu | grep Architecture" | grep -qE 'aarch64'; then
  10. eval 'export LDFLAGS="-L/system/lib64/"'
  11. else
  12. eval 'export LDFLAGS="-L/system/lib/"'
  13. fi
  14. eval 'export CFLAGS="-I/data/data/com.termux/files/usr/include/" && pip install Pillow -U --no-cache-dir'
  15. printf "\r\033[K\033[0;32mPillow installed!\e[0m\n"
  16. echo -e "\033[0;96mDownloading source code...\033[0m"
  17. eval "rm -rf ~/Hikka 2>/dev/null"
  18. eval "cd && git clone https://github.com/hikariatama/Hikka && cd Hikka"
  19. echo -e "\033[0;96mSource code downloaded!...\033[0m\n"
  20. printf "\r\033[0;34mInstalling requirements...\e[0m"
  21. eval "pip install -r requirements.txt --no-cache-dir --no-warn-script-location --disable-pip-version-check --upgrade"
  22. printf "\r\033[K\033[0;32mRequirements installed!\e[0m\n"
  23. if [[ -z "${NO_AUTOSTART}" ]]; then
  24. printf "\n\r\033[0;34mConfiguring autostart...\e[0m"
  25. eval "echo '' > ~/../usr/etc/motd &&
  26. echo 'clear && . <(wget -qO- https://github.com/hikariatama/Hikka/raw/master/banner.sh) && cd ~/Hikka && python3 -m hikka' > ~/.bash_profile"
  27. printf "\r\033[K\033[0;32mAutostart enabled!\e[0m\n"
  28. fi
  29. echo -e "\033[0;96mStarting Hikka...\033[0m"
  30. echo -e "\033[2J\033[3;1f"
  31. printf "\033[1;32mHikka is starting...\033[0m\n"
  32. eval "python3 -m hikka"