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/scripts/before_script.sh

13 lines
405 B
Bash
Raw Normal View History

2017-04-26 14:31:08 +01:00
#!/usr/bin/env bash
2017-04-27 19:36:46 +01:00
# 'stolen' from https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh
2017-04-26 14:54:20 +01:00
set -e
2017-04-26 14:31:08 +01:00
sudo apt-get install -y openssl build-essential xorg libssl-dev
2017-05-25 21:42:28 +01:00
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
2017-04-26 14:31:08 +01:00
cd wkhtmltox
sudo chown root:root bin/wkhtmltopdf
sudo cp -r * /usr/