Skip to content

Commit

Permalink
Added support for Ubuntu 21.10
Browse files Browse the repository at this point in the history
  • Loading branch information
shopifyalan committed Jun 29, 2022
1 parent a68525b commit 2097fdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ suffix = case RbConfig::CONFIG['host_os']
os.start_with?('pop') ||
os.start_with?('zorin')

os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
os.start_with?('ubuntu_21.')
os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.')

os = 'ubuntu_21.10' if os.start_with?('ubuntu_21.')

os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
Expand Down Expand Up @@ -64,7 +65,7 @@ if File.exist?("#{binary}.gz") && !File.exist?(binary)
end

unless File.exist? binary
raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04, ' \
raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/21.10, ' \
'CentOS 6/7/8, Debian 9/10, Archlinux amd64, or Intel-based Cocoa macOS ' \
"(missing binary: #{binary})."
end
Expand Down
Binary file added bin/wkhtmltopdf_ubuntu_21.10_amd64.gz
Binary file not shown.

0 comments on commit 2097fdb

Please sign in to comment.