Skip to content
Snippets Groups Projects
Unverified Commit 579af1e5 authored by jkrvivian's avatar jkrvivian
Browse files

feat: Add script to build with the latest git tag and commit

parent f3b76ae4
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# Builds GoShimmer with the latest git tag and commit hash (short)
# E.g.: ./goshimmer -v --> GoShimmer 0.3.0-f3b76ae4
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
commit_hash=$(git rev-parse --short HEAD)
go build -ldflags="-s -w -X github.com/iotaledger/goshimmer/plugins/banner.AppVersion=${latest_tag:1}-$commit_hash"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment