Skip to content

Commit e1baf3e

Browse files
authored
Merge branch 'master' into add-almalinux-support
2 parents 139e81e + 6bc9221 commit e1baf3e

File tree

6 files changed

+41
-19
lines changed

6 files changed

+41
-19
lines changed

.docker/Dockerfile-ubuntu_24.04

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:24.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

.gitignore

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
.DS_Store
22
pkg/*
33
Gemfile.lock
4+
bin/wkhtmltopdf_archlinux_amd64
45
bin/wkhtmltopdf_centos_6_amd64
6+
bin/wkhtmltopdf_centos_6_i386
57
bin/wkhtmltopdf_centos_7_amd64
8+
bin/wkhtmltopdf_centos_7_i386
69
bin/wkhtmltopdf_centos_8_amd64
710
bin/wkhtmltopdf_debian_9_amd64
8-
bin/wkhtmltopdf_debian_10_amd64
9-
bin/wkhtmltopdf_debian_11_amd64
10-
bin/wkhtmltopdf_debian_12_amd64
1111
bin/wkhtmltopdf_debian_9_arm64
12+
bin/wkhtmltopdf_debian_9_i386
13+
bin/wkhtmltopdf_debian_10_amd64
1214
bin/wkhtmltopdf_debian_10_arm64
15+
bin/wkhtmltopdf_debian_10_i386
16+
bin/wkhtmltopdf_debian_11_amd64
1317
bin/wkhtmltopdf_debian_11_arm64
18+
bin/wkhtmltopdf_debian_11_i386
19+
bin/wkhtmltopdf_debian_12_amd64
1420
bin/wkhtmltopdf_debian_12_arm64
21+
bin/wkhtmltopdf_debian_12_i386
1522
bin/wkhtmltopdf_macos_cocoa
1623
bin/wkhtmltopdf_ubuntu_16.04_amd64
24+
bin/wkhtmltopdf_ubuntu_16.04_i386
1725
bin/wkhtmltopdf_ubuntu_18.04_amd64
26+
bin/wkhtmltopdf_ubuntu_18.04_i386
1827
bin/wkhtmltopdf_ubuntu_20.04_amd64
1928
bin/wkhtmltopdf_ubuntu_20.04_arm64
29+
bin/wkhtmltopdf_ubuntu_21.10_amd64
2030
bin/wkhtmltopdf_ubuntu_22.04_amd64
21-
bin/wkhtmltopdf_centos_6_i386
22-
bin/wkhtmltopdf_centos_7_i386
23-
bin/wkhtmltopdf_debian_9_i386
24-
bin/wkhtmltopdf_debian_10_i386
25-
bin/wkhtmltopdf_ubuntu_16.04_i386
26-
bin/wkhtmltopdf_ubuntu_18.04_i386
27-
bin/wkhtmltopdf_archlinux_amd64

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# 0.12.6.x
1+
# 0.12.6.7
22

3-
- Setup of Github action automation for Linux/MacOS builds
3+
- Setup of GitHub action test automation for Linux/MacOS builds
4+
- Add URLs to gemspec for inclusion on Rubygems.org
5+
- Add support for several new Linux binaries for Debian, Centos, Ubuntu, Mint, Oracle, Tuxedo
6+
- Add support for several arm64 Linux binaries
47

58
# 0.12.6.6
69

bin/wkhtmltopdf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ suffix = case RbConfig::CONFIG['host_os']
3838

3939
os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
4040
os.start_with?('linuxmint_20.')
41-
41+
4242
os = 'ubuntu_21.10' if os.start_with?('ubuntu_21.') ||
4343
os.start_with?('linuxmint_21.')
4444

4545
os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
46-
os.start_with?('tuxedo_22.')
46+
os.start_with?('ubuntu_24.') ||
47+
os.start_with?('tuxedo_22.') ||
48+
os.start_with?('linuxmint_22')
4749

48-
os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
50+
os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2' && os != 'amzn_2023') ||
4951
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
5052

5153
os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
@@ -54,7 +56,9 @@ suffix = case RbConfig::CONFIG['host_os']
5456
os = 'centos_8' if os.start_with?('rocky_8') ||
5557
os.start_with?('rhel_8.') ||
5658
os.start_with?('ol_8.') ||
57-
os.start_with?('almalinux_8')
59+
os.start_with?('almalinux_8') ||
60+
os.start_with?('alinux_') ||
61+
os == 'amzn_2023'
5862

5963
os_based_on_debian_9 = os.start_with?('debian_9') ||
6064
os.start_with?('deepin')

test/test_with_docker.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def test_with_ubuntu_22
5757
test_on_x86 with: 'ubuntu_22.04'
5858
end
5959

60+
def test_with_ubuntu_24
61+
test_on_x86 with: 'ubuntu_24.04'
62+
end
63+
6064
def test_with_archlinux
6165
test_on_x86 with: 'archlinux'
6266
end

wkhtmltopdf-binary.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = "wkhtmltopdf-binary"
5-
s.version = "0.12.6.6"
5+
s.version = "0.12.6.7"
66
s.license = "Apache-2.0"
77
s.author = "Zakir Durumeric"
88
s.email = "zakird@gmail.com"
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
1313
s.require_path = '.'
1414
s.homepage = 'https://github.com/zakird/wkhtmltopdf_binary_gem'
1515

16-
spec.metadata['source_code_uri'] = spec.homepage
17-
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
16+
s.metadata['source_code_uri'] = s.homepage
17+
s.metadata['changelog_uri'] = "#{s.homepage}/blob/master/CHANGELOG.md"
1818

1919
s.add_development_dependency "minitest"
2020
s.add_development_dependency "rake"

0 commit comments

Comments
 (0)