package.sh 611 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. shopt -s nullglob
  3. if [ "$OS_NAME" = "macos-latest" ] && [ "$PACKAGE" = "ON" ]; then
  4. sudo chmod -R +w /usr/local/Cellar
  5. cpack -G Bundle;
  6. fi
  7. # make only one source package
  8. if [ "$OS_NAME" = "ubuntu-latest" ] && [ "$COMPILER_NAME" = "gcc" ] && [ "$BUILD_NAME" = "Debug" ] && [ "$ARCH" = "64" ] && [ "$PACKAGE" = "ON" ]; then
  9. cpack --config CPackSourceConfig.cmake -G TGZ;
  10. fi
  11. if [ "$OS_NAME" = "ubuntu-latest" ] && [ "$PACKAGE" = "ON" ]; then
  12. ../.ci_scripts/build_appimage.sh
  13. # extract built appimages for uploading
  14. mv ~/out/* .
  15. fi
  16. mkdir upload
  17. mv SuperTux* upload/