Added winpkg target to Makefile.

This downloads the windows package from appveyor and signs
it using the key.

This way we needn't mess with a Windows VM to build the package.
This commit is contained in:
John MacFarlane 2016-07-14 10:29:46 -07:00
parent bbd7b533ae
commit 7826cc2a20

View file

@ -49,6 +49,13 @@ debpkg: man/pandoc.1
osxpkg: man/pandoc.1
./make_osx_package.sh
winpkg: pandoc-$(version)-windows.msi
pandoc-$(version)-windows.msi:
wget 'https://ci.appveyor.com/api/projects/jgm/pandoc/artifacts/windows/pandoc.msi?branch=master' -O pandoc.msi && \
osslsigncode sign -pkcs12 ~/Private/ComodoCodeSigning.exp2017.p12 -in pandoc.msi -i http://johnmacfarlane.net/ -t http://timestamp.comodoca.com/ -out $@ -askpass
rm pandoc.msi
man/pandoc.1: README man/pandoc.1.template
pandoc $< -t man -s --template man/pandoc.1.template \
--filter man/capitalizeHeaders.hs \