From 16474bfb407cfa81a3d90ddb1711d0afdb5aca93 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 20 May 2024 18:02:19 +0200 Subject: [PATCH] build: add sha (#2356) Signed-off-by: Ettore Di Giacinto --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index dc14a1a0..920a4e2e 100644 --- a/Makefile +++ b/Makefile @@ -333,8 +333,10 @@ endif # if BUILD_ID is empty, then we don't append it to the binary name ifeq ($(BUILD_ID),) cp $(BINARY_NAME) release/$(BINARY_NAME)-$(OS)-$(ARCH) + shasum -a 256 release/$(BINARY_NAME)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(OS)-$(ARCH).sha256 else cp $(BINARY_NAME) release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) + shasum -a 256 release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH) > release/$(BINARY_NAME)-$(BUILD_ID)-$(OS)-$(ARCH).sha256 endif osx-signed: build