post-upload.sh 674 B

12345678910111213141516171819202122
  1. #!/bin/bash -ex
  2. # SPDX-FileCopyrightText: 2024 suyu Emulator Project
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. #
  5. # Modified by AMA25 on 3/5/24
  6. # Copy documentation
  7. cp LICENSE.txt "$DIR_NAME"
  8. cp README.md "$DIR_NAME"
  9. if [[ -z "${NO_SOURCE_PACK}" ]]; then
  10. git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source
  11. tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source
  12. cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
  13. cp -v "${REV_NAME}-source.tar.xz" "${ARTIFACTS_DIR}/"
  14. fi
  15. tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
  16. # move the compiled archive into the artifacts directory to be uploaded by travis releases
  17. mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"