mirror of
https://github.com/libretro/libretro-super
synced 2025-01-26 03:35:36 +00:00
Merge pull request #803 from orbea/release
retroarch-release.sh: Test that the tarballs work.
This commit is contained in:
commit
4fe338ad4a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user