Add wkhtmltopdf to lib install script
This commit is contained in:
parent
3e7babee8e
commit
778fb72380
1 changed files with 29 additions and 5 deletions
|
@ -2,11 +2,35 @@
|
|||
|
||||
set -e
|
||||
|
||||
mkdir -p lib/
|
||||
cd lib/
|
||||
LIB_DIR=lib/
|
||||
|
||||
PANDOC_VERSION="1.19.2.1"
|
||||
WKTOX_VERSION="0.12.4"
|
||||
|
||||
PANDOC_DL="pandoc-${PANDOC_VERSION}-1-amd64.deb"
|
||||
WKTOX_DL="wkhtmltox-${WKTOX_VERSION}_linux-generic-amd64.tar.xz"
|
||||
|
||||
rm -rf $LIB_DIR
|
||||
mkdir -p $LIB_DIR
|
||||
cd $LIB_DIR
|
||||
|
||||
echo "> Downloading Pandoc..."
|
||||
wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
|
||||
ar p pandoc-1.19.2.1-1-amd64.deb data.tar.gz | tar xz --strip-components 2 -C .
|
||||
wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/${PANDOC_DL}
|
||||
|
||||
echo ">> Unpacking pandoc binaries..."
|
||||
ar p $PANDOC_DL data.tar.gz | tar xz --strip-components 2 -C .
|
||||
mv bin/* .
|
||||
rm -r bin/ share/ pandoc-1.19.2.1-1-amd64.deb
|
||||
|
||||
echo ">> Cleaning up..."
|
||||
rm -r bin/ share/ $PANDOC_DL
|
||||
|
||||
|
||||
echo "> Downloading wkhtmltox..."
|
||||
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKTOX_VERSION}/${WKTOX_DL}
|
||||
|
||||
echo ">> Unpacking wkhtmltox..."
|
||||
tar -xJf $WKTOX_DL
|
||||
mv wkhtmltox/lib/* .
|
||||
|
||||
echo ">> Cleaning up..."
|
||||
rm -r wkhtmltox/ $WKTOX_DL
|
||||
|
|
Reference in a new issue