From 665e728040283a51a5f8301325cae0ec89975677 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 7 Jun 2024 11:32:30 +0200 Subject: [PATCH] build: use powershell to create zip file on windows --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0d0226f..7e6aa33 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ win-package: win-binary-x86_64 cp target/x86_64-pc-windows-gnu/release/$(PROG_NAME).exe $(PROG_NAME)/ cp README.md $(PROG_NAME)/ cp LICENSE $(PROG_NAME)/ - zip $(PROG_NAME)-$(TAG)_win64.zip $(PROG_NAME)/* + # first try (linux) zip command, then powershell sub command to create ZIP file + zip $(PROG_NAME)-$(TAG)_win64.zip $(PROG_NAME)/* || powershell Compress-ARCHIVE $(PROG_NAME) $(PROG_NAME)-$(TAG)_win64.zip rm -rf $(PROG_NAME) || true .PHONY: linux-package