Differentiate git/release data for binary data embedding.

Fixes #10.
This commit is contained in:
2021-02-19 19:24:42 +05:00
parent 10d761f07d
commit edfbd5a90d
4 changed files with 13 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
# Gets git data.
# Should be sourced where neccessary.
export BRANCHNAME=${BRANCHNAME:=$(git branch --no-color --show-current)}
export BUILDID=${BUILDID:=$(git rev-list HEAD --count)}
export COMMITHASH=${COMMITHASH:=$(git rev-parse --verify HEAD)}
export VERSION=${VERSION:="0.1.0-dev"}
export VERSION=${VERSION:=$(cat VERSION)}

View File

@@ -0,0 +1,6 @@
# Overrides some variables for release.
export VERSION=$(cat VERSION)
export BRANCHNAME="release/${VERSION}"
export COMMITHASH="none"
export BUILDID="0"