wkhtmltopdf-binary-arm64 0.12.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/wkhtmltopdf +81 -0
- data/bin/wkhtmltopdf-binary.rb +0 -0
- data/bin/wkhtmltopdf_archlinux_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_6_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_6_i386.gz +0 -0
- data/bin/wkhtmltopdf_centos_7_amd64.gz +0 -0
- data/bin/wkhtmltopdf_centos_7_i386.gz +0 -0
- data/bin/wkhtmltopdf_centos_8_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_10_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_10_i386.gz +0 -0
- data/bin/wkhtmltopdf_debian_9_amd64.gz +0 -0
- data/bin/wkhtmltopdf_debian_9_i386.gz +0 -0
- data/bin/wkhtmltopdf_macos_cocoa.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_16.04_i386.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_18.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_18.04_i386.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_20.04_amd64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_20.04_arm64.gz +0 -0
- data/bin/wkhtmltopdf_ubuntu_22.04_amd64.gz +0 -0
- metadata +92 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 999d730e67ea7a5724fbaa32e602e984c82ec37227147c5a3a001ccccff18e57
|
4
|
+
data.tar.gz: 5d355e3cdee3e2f96c7edafd8e54b713952e1916189c9f2b0555d43ef40d7b1c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '068026c717f9687ae12d818c49ac6c6342f41cc9165ce4a52323d1dfeb70a96bdea15ed53735aeb983588afe1f8bd08e2d3e55aa7106a7c7b300036a3736458c'
|
7
|
+
data.tar.gz: 646310247fa1426c680747a5ef99c0fa10bd2b9ce04567fa3182de626e2e4072cdf261c951ecaa7b359c7b3ee3faaea17b1b259f5adc15ca3cdab6ef4d8f3bec
|
data/bin/wkhtmltopdf
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
###
|
4
|
+
# wkhtmltopdf_binary_gem Copyright 2013 The University of Iowa
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
7
|
+
# use this file except in compliance with the License. You may obtain a copy
|
8
|
+
# of the License at http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
require 'rbconfig'
|
11
|
+
require 'zlib'
|
12
|
+
|
13
|
+
suffix = case RbConfig::CONFIG['host_os']
|
14
|
+
when /linux/
|
15
|
+
os = `. /etc/os-release 2> /dev/null && echo ${ID}_${VERSION_ID}`.strip
|
16
|
+
|
17
|
+
os = 'ubuntu_16.04' if os.start_with?('ubuntu_16.') ||
|
18
|
+
os.start_with?('ubuntu_17.') ||
|
19
|
+
os.start_with?('linuxmint_18.')
|
20
|
+
|
21
|
+
os = 'ubuntu_18.04' if os.start_with?('ubuntu_18.') ||
|
22
|
+
os.start_with?('ubuntu_19.') ||
|
23
|
+
os.start_with?('elementary') ||
|
24
|
+
os.start_with?('linuxmint_19.') ||
|
25
|
+
os.start_with?('pop') ||
|
26
|
+
os.start_with?('zorin')
|
27
|
+
|
28
|
+
os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
|
29
|
+
os.start_with?('ubuntu_21.') ||
|
30
|
+
os.start_with?('linuxmint_20.')
|
31
|
+
|
32
|
+
os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
|
33
|
+
os.start_with?('linuxmint_21.')
|
34
|
+
|
35
|
+
os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
|
36
|
+
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
|
37
|
+
|
38
|
+
os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
|
39
|
+
os.start_with?('rhel_7.')
|
40
|
+
|
41
|
+
os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
|
42
|
+
|
43
|
+
os_based_on_debian_9 = os.start_with?('debian_9') ||
|
44
|
+
os.start_with?('deepin')
|
45
|
+
os = 'debian_9' if os_based_on_debian_9
|
46
|
+
|
47
|
+
os = 'debian_10' if !os_based_on_debian_9 && os.start_with?('debian')
|
48
|
+
|
49
|
+
os = 'archlinux' if os.start_with?('arch_') ||
|
50
|
+
os.start_with?('manjaro_')
|
51
|
+
|
52
|
+
host_cpu = RbConfig::CONFIG['host_cpu']
|
53
|
+
if %w[arm64 aarch64 arch64].include?(host_cpu)
|
54
|
+
architecture = 'arm64'
|
55
|
+
else
|
56
|
+
architecture = host_cpu == 'x86_64' ? 'amd64' : 'i386'
|
57
|
+
|
58
|
+
"#{os}_#{architecture}"
|
59
|
+
when /darwin/
|
60
|
+
'macos_cocoa'
|
61
|
+
else
|
62
|
+
'unknown'
|
63
|
+
end
|
64
|
+
|
65
|
+
suffix = ENV['WKHTMLTOPDF_HOST_SUFFIX'] unless ENV['WKHTMLTOPDF_HOST_SUFFIX'].to_s.empty?
|
66
|
+
|
67
|
+
binary = "#{__FILE__}_#{suffix}"
|
68
|
+
|
69
|
+
if File.exist?("#{binary}.gz") && !File.exist?(binary)
|
70
|
+
File.open binary, 'wb', 0o755 do |file|
|
71
|
+
Zlib::GzipReader.open("#{binary}.gz") { |gzip| file << gzip.read }
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
unless File.exist? binary
|
76
|
+
raise 'Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, ' \
|
77
|
+
'CentOS 6/7/8, Debian 9/10, Archlinux amd64, or Intel-based Cocoa macOS ' \
|
78
|
+
"(missing binary: #{binary})."
|
79
|
+
end
|
80
|
+
|
81
|
+
exec *$*.unshift(binary)
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wkhtmltopdf-binary-arm64
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.12.6.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zakir Durumeric
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-11-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email: zakird@gmail.com
|
43
|
+
executables:
|
44
|
+
- wkhtmltopdf
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- bin/wkhtmltopdf
|
49
|
+
- bin/wkhtmltopdf-binary.rb
|
50
|
+
- bin/wkhtmltopdf_archlinux_amd64.gz
|
51
|
+
- bin/wkhtmltopdf_centos_6_amd64.gz
|
52
|
+
- bin/wkhtmltopdf_centos_6_i386.gz
|
53
|
+
- bin/wkhtmltopdf_centos_7_amd64.gz
|
54
|
+
- bin/wkhtmltopdf_centos_7_i386.gz
|
55
|
+
- bin/wkhtmltopdf_centos_8_amd64.gz
|
56
|
+
- bin/wkhtmltopdf_debian_10_amd64.gz
|
57
|
+
- bin/wkhtmltopdf_debian_10_i386.gz
|
58
|
+
- bin/wkhtmltopdf_debian_9_amd64.gz
|
59
|
+
- bin/wkhtmltopdf_debian_9_i386.gz
|
60
|
+
- bin/wkhtmltopdf_macos_cocoa.gz
|
61
|
+
- bin/wkhtmltopdf_ubuntu_16.04_amd64.gz
|
62
|
+
- bin/wkhtmltopdf_ubuntu_16.04_i386.gz
|
63
|
+
- bin/wkhtmltopdf_ubuntu_18.04_amd64.gz
|
64
|
+
- bin/wkhtmltopdf_ubuntu_18.04_i386.gz
|
65
|
+
- bin/wkhtmltopdf_ubuntu_20.04_amd64.gz
|
66
|
+
- bin/wkhtmltopdf_ubuntu_20.04_arm64.gz
|
67
|
+
- bin/wkhtmltopdf_ubuntu_22.04_amd64.gz
|
68
|
+
homepage:
|
69
|
+
licenses:
|
70
|
+
- Apache-2.0
|
71
|
+
metadata: {}
|
72
|
+
post_install_message:
|
73
|
+
rdoc_options: []
|
74
|
+
require_paths:
|
75
|
+
- "."
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
requirements: []
|
87
|
+
rubygems_version: 3.4.10
|
88
|
+
signing_key:
|
89
|
+
specification_version: 4
|
90
|
+
summary: Provides binaries for WKHTMLTOPDF project in an easily accessible package.
|
91
|
+
Adaptation to support ARM architecture.
|
92
|
+
test_files: []
|