From d8b49b416bad729d889be6a9ddef6265fce3dff0 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 7 Jun 2024 14:09:58 +0200 Subject: [PATCH] build: update Makefile to use powershell subcommand on windows --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d76618d..b46c11d 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ win-package: win-binary-x86_64 cp -r examples osc-variant/ cp README.md osc-variant/ cp LICENSE.txt osc-variant/ - zip osc-variant-$(TAG)_win64.zip osc-variant/* osc-variant/examples/* + # first try (linux) zip command, then powershell sub command to create ZIP file + zip osc-variant-$(TAG)_win64.zip osc-variant/* osc-variant/examples/* || powershell Compress-ARCHIVE osc-variant osc-variant-$(TAG)_win64.zip rm -rf osc-variant || true .PHONY: linux-package