Skip to content

Commit

Permalink
Update Makefile to compress files with tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulBernal authored Oct 10, 2024
1 parent 2bae26e commit 9b4a205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ build-reproducible-generic: go.sum
mkdir -p build
$(DOCKER) create -ti --name $(subst /,-,latest-build-$(PLATFORM)) latest-build-$(PLATFORM) bcnad
$(DOCKER) cp -a $(subst /,-,latest-build-$(PLATFORM)):/usr/local/bin/bcnad $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM))
sha256sum $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)) >> $(BUILD_DIR)/bcnad_sha256.txt
tar -czvf $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)).tar.gz -C $(BUILD_DIR) bcnad_$(subst /,_,$(PLATFORM))
rm $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM))
sha256sum $(BUILD_DIR)/bcnad_$(subst /,_,$(PLATFORM)).tar.gz >> $(BUILD_DIR)/bcnad_sha256.txt

# Add check to make sure we are using the proper Go version before proceeding with anything
check-go-version:
Expand Down

0 comments on commit 9b4a205

Please sign in to comment.