updateAppium.sh 972 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. appimage=appium/appium-desktop
  3. cd || return
  4. mkdir -p ~/Applications
  5. cd ~/Applications || return
  6. #curl -O -L "$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | jq -r ".assets[] | select(.name | test(\"AppImage\")) | .browser_download_url")"
  7. DOWNLOAD_URL=$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | grep browser_download_url | grep "AppImage" | head -n 1 | cut -d '"' -f 4)
  8. curl -OL "$DOWNLOAD_URL"
  9. chmod +x ./*.AppImage
  10. cd - || return
  11. appimage=appium/appium-inspector
  12. cd || return
  13. mkdir -p ~/Applications
  14. cd ~/Applications || return
  15. #curl -O -L "$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | jq -r ".assets[] | select(.name | test(\"AppImage\")) | .browser_download_url")"
  16. DOWNLOAD_URL=$(curl -s https://api.github.com/repos/"$appimage"/releases/latest | grep browser_download_url | grep "AppImage" | head -n 1 | cut -d '"' -f 4)
  17. curl -OL "$DOWNLOAD_URL"
  18. chmod +x ./*.AppImage
  19. cd - || return