setup.sh 613 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. case $1 in
  4. android)
  5. # install deps
  6. cd $WORKDIR/flutter
  7. flutter pub get
  8. wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/so.tar.gz
  9. tar xzf so.tar.gz
  10. rm so.tar.gz
  11. sudo chown -R $(whoami) $ANDROID_HOME
  12. echo "Setup is Done."
  13. ;;
  14. linux)
  15. echo "Linux Setup"
  16. ;;
  17. key)
  18. echo -e "\n$HOME/upload-keystore.jks is not created.\nLet's create it.\nRemember the password you enter in keytool!"
  19. keytool -genkey -v -keystore $HOME/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
  20. ;;
  21. esac