123456789101112131415161718 |
- #!/bin/bash
- # fail if any commands fails
- set -e
- # debug log
- #set -x
- paru -S android-sdk android-sdk-platform-tools android-sdk-build-tools android-platform scrcpy
- {
- echo ""
- echo "# android path"
- echo "export ANDROID_HOME=/opt/android-sdk/"
- echo "export PATH=\$PATH:\$ANDROID_HOME/tools:\$ANDROID_HOME/platform-tools"
- }>>~/.bashrc
- # login again or source this file to add android emulator to user path
- source ~/.bashrc
|