Fix .tar.gz compression

The generated .tar.gz releases were in fact non-gzipped tarballs.

Fixes #5581 <https://github.com/Genymobile/scrcpy/issues/5581>
This commit is contained in:
Romain Vimont 2024-12-02 08:54:22 +01:00
parent 3b2b3625e4
commit 36574d2ee7

View File

@ -40,7 +40,7 @@ case "$FORMAT" in
zip -r "$OUTPUT_DIR/$TARGET_DIRNAME.zip" "$TARGET_DIRNAME" zip -r "$OUTPUT_DIR/$TARGET_DIRNAME.zip" "$TARGET_DIRNAME"
;; ;;
tar.gz) tar.gz)
tar cvf "$OUTPUT_DIR/$TARGET_DIRNAME.tar.gz" "$TARGET_DIRNAME" tar cvzf "$OUTPUT_DIR/$TARGET_DIRNAME.tar.gz" "$TARGET_DIRNAME"
;; ;;
*) *)
echo "Invalid format (expected zip or tar.gz): $FORMAT" >&2 echo "Invalid format (expected zip or tar.gz): $FORMAT" >&2