build_dist.sh: use git's options for gzip tarball

see `BACKEND EXTRA OPTIONS` of `man git-archive` for more details.

Tested with git 2.48.1.
Seems to be a bit faster.
This commit is contained in:
fkobi 2025-03-10 20:26:37 +00:00 committed by GitHub
commit 3dc5a86a0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,5 +15,5 @@ else
fi
# pack archives
git archive --format=tar --prefix="qbittorrent-$projectVersion/" HEAD | gzip -9 > "qbittorrent-$projectVersion.tar.gz"
git archive --prefix="qbittorrent-$projectVersion/" HEAD --output="qbittorrent-$projectVersion.tar.gz" -9
git archive --format=tar --prefix="qbittorrent-$projectVersion/" HEAD | xz -9 > "qbittorrent-$projectVersion.tar.xz"