Skip to content

Commit

Permalink
build: gzip tarballs
Browse files Browse the repository at this point in the history
The tar command currently used to create the release `smocker.tar.gz`
files isn't compressing the archives, so add the `-z` in there. This
should reduce archive sizes from around 32mb to 10-15mb (compressing
a released tarball is usually 10mb, my local builds are 15mb,
so might vary depending on who runs the build) and not lead to
any confusion when folks run `tar -xzf smocker.tar.gz` and find
out the it's not compressed.

Current instructions using `tar xf` don't need to be updated since
that will detect if the archive is compressed.
  • Loading branch information
nilium authored and Thiht committed Mar 15, 2024
1 parent 517402b commit 4b35e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ build/smocker.tar.gz:
$(MAKE) build
yarn install --frozen-lockfile --ignore-scripts
yarn build
cd build/; tar -cvf smocker.tar.gz *
cd build/; tar -czvf smocker.tar.gz *

.PHONY: release
release: build/smocker.tar.gz
Expand Down

0 comments on commit 4b35e8b

Please sign in to comment.