diff --git a/script/get-wkhtmltopdf/meta.yaml b/script/get-wkhtmltopdf/meta.yaml
index 02465f50f..3e0ff443a 100755
--- a/script/get-wkhtmltopdf/meta.yaml
+++ b/script/get-wkhtmltopdf/meta.yaml
@@ -13,8 +13,8 @@ deps:
- windows
- tags: get,generic-sys-util,_wkhtmltopdf
enable_if_env:
- MLC_HOST_OS_TYPE:
- - darwin
+ MLC_INSTALL_FROM_PACKAGE_MANAGER:
+ - on
uid: 67ec874a3dfe4b87
docker:
pre_run_cmds:
@@ -22,4 +22,4 @@ docker:
variations:
with-qt:
group: qt
- default: true
\ No newline at end of file
+ default: true
diff --git a/script/get-wkhtmltopdf/run-macos.sh b/script/get-wkhtmltopdf/run-macos.sh
new file mode 100644
index 000000000..b04695459
--- /dev/null
+++ b/script/get-wkhtmltopdf/run-macos.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# This script installs wkhtmltopdf on Amazon Linux
+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
+${MLC_SUDO} installer -pkg wkhtmltox-0.12.6-1.macos-cocoa.pkg -target /
+
+wkhtmltopdf --version
+test $? -eq 0 || exit $?