From e434aeddfbebace045edbd756c21345d4e4ac4d5 Mon Sep 17 00:00:00 2001 From: Korijn van Golen Date: Tue, 24 Dec 2019 14:33:11 +0100 Subject: [PATCH] make package command repeatable (useful outside of CI) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fe9d838ab..dc36b7a1af 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,9 @@ package: lib-native lib-native-release lib-remote lib-remote-release mkdir -p dist echo "$(GIT_TAG_FULL)" > dist/commit-sha for RELEASE in debug release; do \ - zip -j dist/wgpu-$$RELEASE-$(OS_NAME)-$(GIT_TAG).zip target/$$RELEASE/libwgpu_*.$(LIB_EXTENSION) dist/commit-sha; \ + ARCHIVE=wgpu-$$RELEASE-$(OS_NAME)-$(GIT_TAG).zip; \ + rm -f dist/$$ARCHIVE; \ + zip -j dist/$$ARCHIVE target/$$RELEASE/libwgpu_*.$(LIB_EXTENSION) dist/commit-sha; \ done check: