Skip to content

Commit 397ed72

Browse files
committed
fix wkhtml2pdf install on travis
1 parent 0923b63 commit 397ed72

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

travis/before-script.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
2+
3+
WKHTML2PDF_VERSION='0.12.4'
24

35
sudo apt-get install -y openssl build-essential xorg libssl-dev
4-
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
5-
tar -xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
6+
wget "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTML2PDF_VERSION}/wkhtmltox-${WKHTML2PDF_VERSION}_linux-generic-amd64.tar.xz"
7+
tar -xJf "wkhtmltox-${WKHTML2PDF_VERSION}_linux-generic-amd64.tar.xz"
68
cd wkhtmltox
79
sudo chown root:root bin/wkhtmltopdf
810
sudo cp -r * /usr/

0 commit comments

Comments
 (0)