Skip to content

Commit

Permalink
Update rpm.sh
Browse files Browse the repository at this point in the history
use external gzip compression for rpm
  • Loading branch information
neodix42 authored Dec 21, 2024
1 parent 38b760a commit 8b27837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RPM_INSTALL_PATH="$BUILD_PATH"/rpm-install
TON_RELEASE=$5

mkdir -p "$RPMBUILD_PATH"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
tar --create --file "$RPMBUILD_PATH"/SOURCES/ton.tar.gz --transform 's,^,ton-dev/,' --options gzip:compression-level=9 -C "$NIX_RESULT_PATH" .
gzip -9 < "$NIX_RESULT_PATH" | tar --create --file "$RPMBUILD_PATH"/SOURCES/ton.tar.gz --transform 's,^,ton-dev/,' -C "$NIX_RESULT_PATH" .

rpmbuild --define "_topdir $RPMBUILD_PATH" \
--define "_prefix /usr" \
Expand Down

0 comments on commit 8b27837

Please sign in to comment.