zakird / wkhtmltopdf_binary_gem

Ruby gem containing easily installable access to wkhtmltopdf application
https://rubygems.org/gems/wkhtmltopdf-binary
Apache License 2.0
184 stars 346 forks source link

Add support to ubuntu 22.04 and 24.04 in arm64 #181

Open chileung-b4b opened 2 months ago

chileung-b4b commented 2 months ago

The binary is the same for Ubuntu 22.04 and 24.04

[!IMPORTANT] To check the binary is the same as the one from https://wkhtmltopdf.org/downloads.html before using and/or merging this branch, run the following:

$ curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_arm64.deb > wkhtmltox_0.12.6.1-2.jammy_arm64.deb
$ dpkg -x wkhtmltox_0.12.6.1-2.jammy_arm64.deb wkhtmltox/
$ git clone -b add-ubuntu-24-04-arm --single-branch --depth 1 https://github.com/chileung-b4b/wkhtmltopdf_binary_gem.git
$ gunzip -c ./wkhtmltopdf_binary_gem/bin/wkhtmltopdf_ubuntu_22.04_arm64.gz | sha256sum -
00fbba5e1ee392776c2978b45503c07af34c42086c842b31dc9d7a76d52fcf29  -
$ sha256sum wkhtmltox/usr/local/bin/wkhtmltopdf
00fbba5e1ee392776c2978b45503c07af34c42086c842b31dc9d7a76d52fcf29  wkhtmltox/usr/local/bin/wkhtmltopdf
ksamc commented 2 months ago

Thank you @chileung-b4b. I just used your addition on my Ubuntu 22.04 ARM installation and it worked great. I hope to see this merged in.

g3ortega commented 2 months ago

Thank you @chileung-b4b! I was about to work in this direction, but your changes are working like a charm while testing some CI stuff on GitHub Actions with ARM.

chileung-b4b commented 2 months ago

Updated description with instructions to check the added binary's hash