mkrelease.sh 755 B

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