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

Add removal of the gzipped binaries in the gem native extension build step #92

Closed
wants to merge 16 commits into from

Conversation

tioteath
Copy link

@tioteath tioteath commented Jul 26, 2020

In this PR:

Added code which removes gzipped binaries from the bin directory during gem native extension build step. This allows to reduce a footprint of the installed gem from almost 280MB to about 47MB.

I have tested it on Ubuntu Bionic 18.04, Ubuntu Focal 20.04 and Debian Buster 10.

fixes #55

@kreintjes
Copy link

@tioteath I get two warnings when running bundle:

/Users/kevin/.rbenv/versions/2.6.6/lib/ruby/2.6.0/rubygems/ext/builder.rb:183: warning: conflicting chdir during another chdir block
/Users/kevin/.rbenv/versions/2.6.6/lib/ruby/2.6.0/rubygems/ext/builder.rb:191: warning: conflicting chdir during another chdir block

Otherwise it works great, also on Heroku. Thanks! It appears it is not even necessary to set WKHTMLTOPDF_GEM_MINIMIZE, because my slug size on Heroku reduced greatly even without this env var.

Does anyone know why this PR isn't getting merged?

@tioteath tioteath deleted the branch zakird:master September 3, 2021 19:11
@tioteath tioteath closed this Sep 3, 2021
@tioteath tioteath deleted the master branch September 3, 2021 19:11
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.

Gem size 0.12.5
2 participants