06.install_appium.sh 1008 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. brew install -q libimobiledevice
  7. brew install -q ios-deploy
  8. brew install -q npm cmake
  9. brew install -q carthage
  10. sudo npm install -g appium@next --unsafe-perm=true --allow-root --drivers=xcuitest,uiautomator2
  11. sudo npm install -g appium-doctor
  12. #sudo npm install -g opencv4nodejs --unsafe-perm=true --allow-root
  13. #npm install wd
  14. # appium-desktop
  15. cd || return
  16. mkdir -p ~/bin
  17. cd ~/Downloads || return
  18. curl -OL "$(curl -s https://api.github.com/repos/appium/appium-desktop/releases/latest | jq -r ".assets[] | select(.name | test(\".dmg\")) | .browser_download_url" | grep -v ".blockmap")" --output appium-server-latest.out
  19. curl -OL "$(curl -s https://api.github.com/repos/appium/appium-inspector/releases/latest | jq -r ".assets[] | select(.name | test(\"dmg\")) | .browser_download_url" | grep -v ".blockmap")" --output appium-inspector-latest.out
  20. open ~/Downloads
  21. read -p "Press enter key after installing appium-server and appium-inspector"