build-all.sh 756 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -e
  3. if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
  4. echo "usage: $0 <version> <file version> <mono version>"
  5. echo " like : $0 3.0.3.rc1 3.0.3-rc1 5.12.0.226"
  6. exit 1
  7. fi
  8. VERSION=$1
  9. FILE_VERSION=$2
  10. MONO_VERSION=$3
  11. ./build-godot.sh ${FILE_VERSION} ${MONO_VERSION} mono-glue
  12. echo "uwp windows macos ubuntu_32 ubuntu_64 android javascript" | xargs -P 2 -n 1 ./build-godot.sh ${FILE_VERSION} ${MONO_VERSION}
  13. ./build-templates.sh ${VERSION} ${FILE_VERSION}
  14. pushd godot-mono-glue
  15. git archive --format=tar $FILE_VERSION --prefix=godot-$FILE_VERSION/ | xz -c > ../release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz
  16. popd
  17. sha256sum release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz > release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz.sha256