update_appium_desktop_macos.sh 618 B

123456789101112131415
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. cd || return
  7. mkdir -p ~/bin
  8. cd ~/Downloads || return
  9. curl -OL $(curl -s https://api.github.com/repos/appium/appium-desktop/releases/latest | jq -r ".assets[] | select(.name | test(\".dmg\")) | .browser_download_url") --output appium-server-latest.out
  10. curl -OL $(curl -s https://api.github.com/repos/appium/appium-inspector/releases/latest | jq -r ".assets[] | select(.name | test(\"dmg\")) | .browser_download_url") --output appium-inspector-latest.out
  11. open ~/Downloads
  12. read -p "Press enter key after installing appium-server and appium-inspector"