Provide slimmer release source tarballs #276

Closed
opened 2026-01-29 20:41:14 +00:00 by claunia · 5 comments
Owner

Originally created by @felixbuenemann on GitHub (Mar 26, 2019).

Currently to build libbrotli or the brotli cli one has to pull down a huge 23 MB tarball, even though only the build scripts (Makefile etc.) and "c" subdirectory are required for compilation, which account to ~550 KB gzipped.

It would be great if the releases tab could provide downloads for slimmer tarballs that only contain the required files.

I'd be happy to create a PR that adds a make target to create a release tarball.

Originally created by @felixbuenemann on GitHub (Mar 26, 2019). Currently to build libbrotli or the brotli cli one has to pull down a huge 23 MB tarball, even though only the build scripts (Makefile etc.) and "c" subdirectory are required for compilation, which account to ~550 KB gzipped. It would be great if the releases tab could provide downloads for slimmer tarballs that only contain the required files. I'd be happy to create a PR that adds a make target to create a release tarball.
Author
Owner

@eustas commented on GitHub (Jul 17, 2019):

Will try to do that soon.

@eustas commented on GitHub (Jul 17, 2019): Will try to do that soon.
Author
Owner

@eustas commented on GitHub (Jul 17, 2019):

Can't find any filtering setting.
The only option seems to create more artefacts on "before_deploy" stage in travis and publish them.
And the remove "fat" tarballs manually...

@eustas commented on GitHub (Jul 17, 2019): Can't find any filtering setting. The only option seems to create more artefacts on "before_deploy" stage in travis and publish them. And the remove "fat" tarballs manually...
Author
Owner

@eustas commented on GitHub (May 15, 2020):

It seems there is a solution. There is a speculation that GitHub uses git archive and thus we can tune the archive content by hacking .gitattributes. Going to try that.
Perhaps will leave only C code, as other languages have standartized package / distribution systems.

@eustas commented on GitHub (May 15, 2020): It seems there is a solution. There is a speculation that GitHub uses `git archive` and thus we can tune the archive content by hacking `.gitattributes`. Going to try that. Perhaps will leave only C code, as other languages have standartized package / distribution systems.
Author
Owner

@eustas commented on GitHub (May 15, 2020):

Yay, it works. zip file for the next release will be ~525kb =)

@eustas commented on GitHub (May 15, 2020): Yay, it works. zip file for the next release will be ~525kb =)
Author
Owner

@felixbuenemann commented on GitHub (May 15, 2020):

Nice trick!

@felixbuenemann commented on GitHub (May 15, 2020): Nice trick!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#276