mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
added version of package in build log
This commit is contained in:
parent
3aaf253ce4
commit
98992424d4
1 changed files with 2 additions and 0 deletions
2
build
2
build
|
@ -4,6 +4,8 @@ set -ef
|
|||
PKGSRC=${PKGSRC:-github.com/RiV-chain/RiV-mesh/src/version}
|
||||
PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)}
|
||||
PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)}
|
||||
echo "Building: $PKGVER"
|
||||
|
||||
if [ "$LDFLAGS" ]; then
|
||||
LDFLAGS="$LDFLAGS -X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue