diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-11-20 21:34:22 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-11-20 21:34:22 -0800 |
commit | 0eb132c51877bd7cc80699134ecfc7ddd2c44f8a (patch) | |
tree | b8f1c879db2e2b2e2dbc64bbe2a01efec2eae31b /Makefile | |
parent | 63df9e3172e59986f452cd1c57a2344abb8fd2b2 (diff) | |
download | pandoc-0eb132c51877bd7cc80699134ecfc7ddd2c44f8a.tar.gz |
Makefile - create windows binary package as zip as well as msi.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 && \ |