From c463e35533584d2095496ea560400337b45a1b3e Mon Sep 17 00:00:00 2001 From: Maximilian Breithecker <72022235+mbreithecker@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:56:03 +0200 Subject: [PATCH] fix: correctly name packaged release binary (#205) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3b47d59f..ac105cf8 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,9 @@ release: ensure_environment ensure_version CGO_ENABLED=0 GOOS=$$os GOARCH=$$arch go build $(BUILD_FLAGS) -o release/kyved_$(ENV)_"$$os"_"$$arch" ./cmd/kyved; \ touch -a -m -t $(BUILD_TIME) release/kyved_$(ENV)_"$$os"_"$$arch"; \ sha256sum release/kyved_$(ENV)_"$$os"_"$$arch" >> release/release_$(ENV)_checksum; \ - tar -C release -cf release/kyved_$(ENV)_"$$os"_"$$arch".tar kyved_$(ENV)_"$$os"_"$$arch"; \ + mv release/kyved_$(ENV)_"$$os"_"$$arch" release/kyved; \ + tar -C release -cf release/kyved_$(ENV)_"$$os"_"$$arch".tar kyved; \ + mv release/kyved release/kyved_$(ENV)_"$$os"_"$$arch"; \ touch -a -m -t $(BUILD_TIME) release/kyved_$(ENV)_"$$os"_"$$arch".tar; \ gzip release/kyved_$(ENV)_"$$os"_"$$arch".tar; \ sha256sum release/kyved_$(ENV)_"$$os"_"$$arch".tar.gz >> release/release_$(ENV)_checksum; \