wkhtmltopdf_binary_gem icon indicating copy to clipboard operation
wkhtmltopdf_binary_gem copied to clipboard

fix permission issue on some environment

Open hardywu opened this issue 5 years ago • 2 comments

unzip the wkhtmltopdf binary on installation using gem extension. related #57

hardywu avatar Jun 22 '20 10:06 hardywu

Interesting, setting up an empty c-extension to unpack the right binary on install.

Could this be accomplished with a simpler post_install task like so:

Gem.post_install do
  # unzip correct binary
end

Or does that still have the permission issue?

unixmonkey avatar Jun 23 '20 13:06 unixmonkey

@unixmonkey No, It can't. post_install hooks are not working at the level within the gem package.

hardywu avatar Jun 23 '20 15:06 hardywu