1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46:50 +00:00

build: update Makefile to use powershell subcommand on windows

This commit is contained in:
Paul-Christian Volkmer 2024-06-07 14:09:58 +02:00
parent f03d134569
commit d8b49b416b

View File

@ -15,7 +15,8 @@ win-package: win-binary-x86_64
cp -r examples osc-variant/ cp -r examples osc-variant/
cp README.md osc-variant/ cp README.md osc-variant/
cp LICENSE.txt 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 rm -rf osc-variant || true
.PHONY: linux-package .PHONY: linux-package