aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
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 && \