package.sh 589 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. shopt -s nullglob
  3. if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$PACKAGE" = "ON" ]; then
  4. sudo chmod -R +w /usr/local/Cellar
  5. cpack -G Bundle;
  6. fi
  7. if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PACKAGE" = "ON" ]; then
  8. cpack --config CPackSourceConfig.cmake -G TGZ;
  9. ../.travis/build_appimage.sh
  10. #extract built appimages for uploading
  11. mv ~/out/* .
  12. fi
  13. declare -A urls
  14. for file in SuperTux*; do
  15. echo "Uploading $file";
  16. url=$(curl --upload-file "$file" "https://transfer.sh/$file")
  17. urls[$file]=$url
  18. echo $url
  19. done
  20. declare -p urls > ~/urls.dat