diff --git a/.platform/hooks/prebuild/install_wkhtmltox.sh b/.platform/hooks/prebuild/install_wkhtmltox.sh new file mode 100644 index 0000000..e2b1d45 --- /dev/null +++ b/.platform/hooks/prebuild/install_wkhtmltox.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Install wkthmltopdf. + +# Used for generating pdfs and images using headless chrome +# Normally used in packages like https://github.com/barryvdh/laravel-snappy +# Will get much better performance than using dom-pdf or similar packages + +# set +e + +# sudo amazon-linux-extras enable epel + +# sudo yum install -y epel-release + +# sudo yum -y update + +# sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm + +# sudo yum install -y wkhtmltox-0.12.5-1.centos7.x86_64.rpm + +# sudo rm wkhtmltox-0.12.5-1.centos7.x86_64.rpm