mkrelease.sh 787 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e
  3. # Simple script to construct a redistributable and complete tarball of the
  4. # gamemode tree, including the subprojects, so that it can be trivially
  5. # packaged by distributions banning networking during build.
  6. meson subprojects download
  7. meson subprojects update
  8. # Bump in tandem with meson.build, run script once new tag is up.
  9. VERSION="1.6-dev"
  10. NAME="gamemode"
  11. ./scripts/git-archive-all.sh --format tar --prefix ${NAME}-${VERSION}/ --verbose -t HEAD ${NAME}-${VERSION}.tar
  12. xz -9 "${NAME}-${VERSION}.tar"
  13. # Automatically sign the tarball with GPG key of user running this script
  14. gpg --armor --detach-sign "${NAME}-${VERSION}.tar.xz"
  15. gpg --verify "${NAME}-${VERSION}.tar.xz.asc"
  16. sha256sum "${NAME}-${VERSION}.tar.xz" "${NAME}-${VERSION}.tar.xz.asc" > sha256sums.txt