Merge pull request #803 from orbea/release

retroarch-release.sh: Test that the tarballs work.
This commit is contained in:
Twinaphex 2018-05-05 22:57:51 +02:00 committed by GitHub
commit 4fe338ad4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ PRGNAM=RetroArch
SRCNAM="$(printf %s $PRGNAM | tr '[:upper:]' '[:lower:]')"
TMP=${TMP:-/tmp/libretro}
# Exit on errors and unset variables
set -eu
# Ensure a clean and fully updated repo
@ -37,3 +38,11 @@ cd -- "$TMP"
# Create .zip and .tar.xz release tarballs.
zip -r "$PRGNAM-$VERSION.zip" "$PRGNAM-$VERSION"
tar cf - "$PRGNAM-$VERSION" | xz -c9 - > "$PRGNAM-$VERSION.tar.xz"
# Test the tarballs
rm -rf -- "$PRGNAM-$VERSION"
tar xvf "$PRGNAM-$VERSION.tar.xz"
rm -rf -- "$PRGNAM-$VERSION"
unzip -- "$PRGNAM-$VERSION.zip"
exit 0