setup.sh 443 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. if [ "$#" -eq 0 ]; then
  4. echo "Usage: ./setup.sh <godot_branch_or_tag>"
  5. echo
  6. echo "e.g.:"
  7. echo " ./setup.sh 3.4.4-stable"
  8. echo " ./setup.sh master"
  9. read version
  10. exit 1
  11. fi
  12. branch=${1%/}
  13. rm -rf godot
  14. git clone --depth 1 https://github.com/godotengine/godot.git -b $branch
  15. cp -r .idea godot
  16. cp custom.py godot
  17. cp -r ../spine-cpp/spine-cpp spine_godot
  18. rm -rf example/.import
  19. rm -rf example/.godot
  20. ./build.sh