install_nubuildgdx.ksh 467 B

12345678910111213141516
  1. #!/bin/ksh
  2. doas pkg_add jdk
  3. application=NuBuildGDX
  4. repository=atsb/NuBuildGDX
  5. cd || return
  6. mkdir -p ~/bin/${application}
  7. cd ~/bin/${application} || return
  8. DOWNLOAD_URL=$(curl -s https://api.github.com/repos/"$repository"/releases/latest | grep browser_download_url | grep ".zip" | head -n 1 | cut -d '"' -f 4)
  9. curl -OL "$DOWNLOAD_URL"
  10. unzip ./*.zip
  11. rm *.zip
  12. echo "NOTE: To play run: $ /usr/local/jdk-17/bin/java -jar ~/bin/NuBuildGDX/NuBuildGDX.jar"
  13. cd - || return