make.sh 979 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. git submodule update --init --recursive
  3. pushd ../Jellyfin.Versioning
  4. #TODO Uncomment the next line with PR is merged.
  5. #./update-version
  6. popd
  7. #TODO enabled proper flag parsing for enabling and disabling building, signing, packaging and publishing
  8. # Execute all build.sh, package.sh, sign.sh and publish.sh scripts in every folder. In that order. Script should check for artifacts themselves.
  9. echo "Running for platforms '$@'."
  10. for directory in */ ; do
  11. platform=`basename "${directory}"`
  12. if [[ $@ == *"$platform"* || $@ = *"all"* ]]; then
  13. echo "Processing ${platform}"
  14. pushd "$platform"
  15. if [ -f build.sh ]; then
  16. ./build.sh
  17. fi
  18. if [ -f package.sh ]; then
  19. ./package.sh
  20. fi
  21. if [ -f sign.sh ]; then
  22. ./sign.sh
  23. fi
  24. if [ -f publish.sh ]; then
  25. ./publish.sh
  26. fi
  27. popd
  28. else
  29. echo "Skipping $platform."
  30. fi
  31. done