Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: create smaller build artifacts #319

Closed
wants to merge 1 commit into from

Conversation

jbergstroem
Copy link
Member

check if xz exists on the host system and use if available, which makes
xz-tarballs available for distribution. also remove deps/zlib/contrib
since it's not in use -- shaves additional size from the tarballs.

also, slightly modify the .gitignore file to ignore these new archives.

Refs #301.

find $(TARNAME)/ -type l | xargs rm # annoying on windows
tar -cf $(TARNAME).tar $(TARNAME)
rm -rf $(TARNAME)
gzip -f -9 $(TARNAME).tar
gzip -k -f -9 $(TARNAME).tar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-k isn't very portable, it's missing on older versions of gzip and we like to make some of these assets on older systems. Perhaps gzip -c -f -9 $(TARNAME).tar > $(TARNAME).tar.gz

@rvagg
Copy link
Member

rvagg commented Jan 13, 2015

@jbergstroem would you mind adding this to the $(BINARYTAR) target too. The Linux binaries go down from 7.2M to 5.2M.

@jbergstroem
Copy link
Member Author

@rvagg Thanks for the review; I'll revise.

check if xz exists on the host system and use if available, which makes
xz-tarballs available for distribution. also remove deps/zlib/contrib
since it's not in use -- shaves additional size from the tarballs.

also, slightly modify the .gitignore file to ignore these new archives.
@jbergstroem
Copy link
Member Author

@rvagg BINARYNAME now also gets xz-treatment.

Edit: remove additional questions since they belong in another issue.

rvagg pushed a commit that referenced this pull request Jan 13, 2015
check if xz exists on the host system and use if available, which makes
xz-tarballs available for distribution. also remove deps/zlib/contrib
since it's not in use -- shaves additional size from the tarballs.

also, slightly modify the .gitignore file to ignore these new archives.

PR-URL: #319
Reviewed-By: Rod Vagg <rod@vagg.org>
@rvagg
Copy link
Member

rvagg commented Jan 13, 2015

thanks @jbergstroem, landed in 17217c3 and I'll be trying this on our next nightly (soon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants