Skip to content

Commit 97c759e

Browse files
authored
Added macos install wkhtmltopdf (#301)
1 parent c11befc commit 97c759e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

script/get-wkhtmltopdf/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ deps:
1313
- windows
1414
- tags: get,generic-sys-util,_wkhtmltopdf
1515
enable_if_env:
16-
MLC_HOST_OS_TYPE:
17-
- darwin
16+
MLC_INSTALL_FROM_PACKAGE_MANAGER:
17+
- on
1818
uid: 67ec874a3dfe4b87
1919
docker:
2020
pre_run_cmds:
2121
- mlc pull repo
2222
variations:
2323
with-qt:
2424
group: qt
25-
default: true
25+
default: true

script/get-wkhtmltopdf/run-macos.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# This script installs wkhtmltopdf on Amazon Linux
3+
curl -L -o wkhtmltox-0.12.6-1.macos-cocoa.pkg https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.macos-cocoa.pkg
4+
${MLC_SUDO} installer -pkg wkhtmltox-0.12.6-1.macos-cocoa.pkg -target /
5+
6+
wkhtmltopdf --version
7+
test $? -eq 0 || exit $?

0 commit comments

Comments
 (0)