Skip to content

Commit 30cfdbd

Browse files
authored
Fixes for wkhtmltopdf (#299)
1 parent b073ced commit 30cfdbd

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

script/get-generic-sys-util/meta.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,17 @@ variations:
743743
wkhtmltopdf:
744744
apt: wkhtmltopdf
745745
brew: wkhtmltopdf
746+
xfonts-base:
747+
env:
748+
MLC_SYS_UTIL_NAME: xfonts_base
749+
new_env_keys:
750+
- MLC_XFONTS_BASE_VERSION
751+
state:
752+
xfonts_base:
753+
apt: xfonts-base
754+
dnf: xorg-x11-fonts-misc
755+
yum: xorg-x11-fonts-misc
756+
zypper: xorg-x11-fonts
746757
xz:
747758
env:
748759
MLC_SYS_UTIL_NAME: xz

script/get-wkhtmltopdf/meta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ tags:
88
deps:
99
- tags: detect,os
1010
- tags: detect,sudo
11+
skip_if_env:
12+
MLC_HOST_OS_TYPE:
13+
- windows
1114
uid: 67ec874a3dfe4b87
15+
docker:
16+
pre_run_cmds:
17+
- mlc pull repo
1218
variations:
1319
with-qt:
1420
group: qt

script/get-wkhtmltopdf/run-fedora.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos6.x86_64.rpm
66

77
# Install the package
8-
sudo yum localinstall -y wkhtmltox-0.12.6-1.centos6.x86_64.rpm
8+
${MLC_SUDO} yum localinstall -y wkhtmltox-0.12.6-1.centos6.x86_64.rpm --nobest --skip-broken
99

10-
# Install dependencies
11-
sudo yum install -y xorg-x11-fonts-75dpi
12-
13-
# Verify the installation
1410
wkhtmltopdf --version
15-
16-
11+
test $? -eq 0 || exit $?

script/get-wkhtmltopdf/run-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
wget -nc https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
33
test $? -eq 0 || exit $?
44
${MLC_SUDO} dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
5+
${MLC_SUDO} DEBIAN_FRONTEND=noninteractive apt-get install -f -y
56
test $? -eq 0 || exit $?
7+

0 commit comments

Comments
 (0)