install.sh 642 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. #
  3. # ./gameplay-install.sh [master | next]
  4. #
  5. # Download GamePlay resources from HTTP server and extract from ZIP
  6. #
  7. # Helps prevent repo bloat due to large binary files since they can
  8. # be hosted separately.
  9. #
  10. # prefix=http://www.jimmydev.com
  11. # prefix=http://jfinale.appoverdrive.com
  12. prefix=http://www.clicknectdev.com
  13. branchname=$1
  14. if [[ "$branchname" == "" ]]; then
  15. branchname="next"
  16. fi
  17. filename=gameplay-deps-$branchname
  18. echo Downloading $filename.zip from $prefix...
  19. curl -# -O $prefix/$filename.zip
  20. echo Extracting $filename.zip... please standby...
  21. unzip -q $filename.zip
  22. echo Cleaning up...
  23. rm $filename.zip
  24. echo Done.