-
Notifications
You must be signed in to change notification settings - Fork 0
Support Ubuntu 24 #11
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
Conversation
Add support for RHEL 7.x
Ubuntu 21.04 was released today, and currently this gem errors because it's not supported. I've installed wkhtmltopdf manually on my system using the binary for Focal Fossa (20.04) and it's working fine based on my testing.
Use the 20.04 binary for 21.04
…ntu_24 Add support to ubuntu 24.04
fix for linux mint 22
Add support for alibaba cloud linux
Fix binary used for Amazon Linux 2023 AMI
Add support for AlmaLinux 8
Update CHANGELOG for version 0.12.6.8
Update wkhtmltopdf: Support KDE Neon 22.04 and 24.04
Add support to ubuntu 22.04 and 24.04 in arm64
Update wkhtmltopdf to support Debian 13
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
| unless File.exist? binary | ||
| raise 'Invalid platform, must be running on Ubuntu 18.04/20.04/22.04, ' \ | ||
| 'CentOS 7, Amazon Linux 2, or intel-based Cocoa macOS ' \ | ||
| raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \ | |
| raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04/24.04, ' \ |
| os_based_on_ubuntu_20_04 = os.start_with?('ubuntu_20.') | ||
| os = 'ubuntu_20.04' if os_based_on_ubuntu_20_04 | ||
|
|
||
| os_based_on_ubuntu_22_04 = os.start_with?('ubuntu_22.') || os.start_with?('ubuntu_24.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| os_based_on_ubuntu_22_04 = os.start_with?('ubuntu_22.') || os.start_with?('ubuntu_24.') | |
| os_based_on_ubuntu_22_04 = os.start_with?('ubuntu_22.') |
Why did we merge the condition here? Can we create a new line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the upstream logic, which uses the 22 binary for either 22 or 24. Refer: https://github.com/zakird/wkhtmltopdf_binary_gem/blob/master/bin/wkhtmltopdf#L45-L50
No description provided.