post-upload.sh 552 B

123456789101112131415161718
  1. #!/bin/bash -ex
  2. # SPDX-FileCopyrightText: 2019 yuzu Emulator Project
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # Copy documentation
  5. cp LICENSE.txt "$DIR_NAME"
  6. cp README.md "$DIR_NAME"
  7. if [[ -z "${NO_SOURCE_PACK}" ]]; then
  8. tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md LICENSE.txt
  9. cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
  10. fi
  11. tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
  12. # move the compiled archive into the artifacts directory to be uploaded by travis releases
  13. mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"