This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf-rs/.circleci/wkhtmltopdf.sh

13 lines
390 B
Bash
Raw Normal View History

2017-08-27 22:30:09 +01:00
#!/usr/bin/env bash
# 'stolen' from https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh
set -e
apt-get install -y openssl build-essential xorg libssl-dev
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox
chown root:root bin/wkhtmltopdf
cp -r * /usr/