From 0eb132c51877bd7cc80699134ecfc7ddd2c44f8a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 20 Nov 2017 21:34:22 -0800 Subject: Makefile - create windows binary package as zip as well as msi. --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 49689365e..a9d42e6af 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,17 @@ debpkg: man/pandoc.1 macospkg: man/pandoc.1 ./macos/make_macos_package.sh -winpkg: pandoc-$(version)-windows.msi +winpkg: pandoc-$(version)-windows.msi pandoc-$(version)-windows.zip + +pandoc-$(version)-windows.zip: pandoc-$(version)-windows.msi + -rm -rf wintmp && \ + msiextract -C wintmp $< && \ + cd wintmp/"Program Files" && \ + mv Pandoc pandoc-$(version) && \ + zip -r $@ pandoc-$(version) && \ + mv $@ ../../ && \ + cd ../.. && \ + rm -rf wintmp pandoc-$(version)-windows.msi: wget 'https://ci.appveyor.com/api/projects/jgm/pandoc/artifacts/windows/pandoc-windows-i386.msi?branch=$(BRANCH)' -O pandoc.msi && \ -- cgit v1.2.3