07.install_android_tools.sh 429 B

123456789101112131415161718
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. paru -S android-sdk android-sdk-platform-tools android-sdk-build-tools android-platform scrcpy
  7. {
  8. echo ""
  9. echo "# android path"
  10. echo "export ANDROID_HOME=/opt/android-sdk/"
  11. echo "export PATH=\$PATH:\$ANDROID_HOME/tools:\$ANDROID_HOME/platform-tools"
  12. }>>~/.bashrc
  13. # login again or source this file to add android emulator to user path
  14. source ~/.bashrc