Skip to content

Commit 74484a8

Browse files
authored
Merge pull request zakird#97 from tsolar/added-debian-10-to-binary-script
support Debian 10 and later on binary
2 parents f3e06ea + dbc9321 commit 74484a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/wkhtmltopdf

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ suffix = case RbConfig::CONFIG['host_os']
3232
os_based_on_debian_9 = (/deepin/ =~ os)
3333
os = 'debian_9' if os_based_on_debian_9
3434

35+
os_based_on_debian = os.start_with?('debian')
36+
os = 'debian_10' if os_based_on_debian
37+
3538
os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')
3639
os = 'archlinux' if os_based_on_archlinux
3740

@@ -43,7 +46,7 @@ suffix = case RbConfig::CONFIG['host_os']
4346
else
4447
'unknown'
4548
end
46-
49+
4750
suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
4851

4952
binary = "#{__FILE__}_#{suffix}"

0 commit comments

Comments
 (0)