2018-01-16 06:58:15 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# apt-get install p7zip-full
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mkdir -p wkhtmltopdf less
|
2018-01-16 12:47:23 +01:00
|
|
|
TEMPDIR=`mktemp -d -t flectra_windows_build_XXXX`
|
2018-01-16 06:58:15 +01:00
|
|
|
function cleanup {
|
|
|
|
rm -rf $TEMPDIR
|
|
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
|
|
|
|
# postgresql
|
|
|
|
wget -q http://get.enterprisedb.com/postgresql/postgresql-9.5.4-2-windows.exe
|
|
|
|
|
|
|
|
# wkhtmltopdf
|
|
|
|
wget -q -P $TEMPDIR http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1.2_msvc2013-win32.exe
|
|
|
|
7z x -o$TEMPDIR $TEMPDIR/wkhtmltox-0.12.1.2_msvc2013-win32.exe
|
|
|
|
cp $TEMPDIR/bin/wkhtmltopdf.exe ./wkhtmltopdf
|
|
|
|
|
|
|
|
# less
|
|
|
|
pushd less
|
|
|
|
wget -q https://github.com/duncansmart/less.js-windows/releases/download/v2.5.1/less.js-windows-v2.5.1a.zip
|
|
|
|
unzip less.js-windows-v2.5.1a.zip
|
|
|
|
rm less.js-windows-v2.5.1a.zip
|
|
|
|
|