Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add whkhtmltox install in prebuild #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .platform/hooks/prebuild/install_wkhtmltox.sh
Original file line number Diff line number Diff line change
@@ -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