Closed catsky closed 6 months ago
Hello, @catsky ! 👋
Thanks for contact us.
Recently, we've merged a PR that fixes this kind of verification: https://github.com/zakird/wkhtmltopdf_binary_gem/pull/120
It's present in master branch (but not in rubygems yet). Can you test to check if works in your scenario?
🍻
cool, yes, it works if using the master branch
That's a great news 🎉
@unixmonkey Maybe this can be a good time for an official release of gem, what do you think about?
We can try the automated way to release the gem, using this PR: https://github.com/zakird/wkhtmltopdf_binary_gem/pull/116
a good time for an official release of gem
+1 for me.
@unixmonkey How do you think about this idea?
https://wkhtmltopdf.org/downloads.html now has binaries specifically for Amazon Linux 2. The current gem has amzn_2
defined as an os based on centos_7, which may be true but now that wkhtmltopdf supports Amazon Linux 2 directly I feel that would be a better binary to build off
I'm pretty sure this was fixed already in a prior version of the gem, but I'm just now noticing this issue as I'm going through and closing ones for version 0.12.6.7
. Please reopen if you find there's still an issue.
//for amz 1: os = "amzn_2018.03", // for amz 2: os="amzn2.0 (2017.12)" os = `. /etc/os-release 2> /dev/null && echo ${ID}${VERSION_ID}`.strip
//it's wrong to check which amzn version using the following line, which return
false
for both amzn versions os.startwith?('amzn') && !os.start_with?('amzn_2')FYI
amz linux 1
amz linux 2