mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/image: include git shorthash in version
This commit is contained in:
parent
148fb46640
commit
255f3f7266
@ -35,7 +35,8 @@ BUILD_DATE=`date +%Y%m%d%H%M%S`
|
|||||||
if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then
|
if [ "$OPENELEC_VERSION" = devel -o "$OPENELEC_VERSION" = debug ]; then
|
||||||
GIT_BUILD=$(git rev-list --count HEAD)
|
GIT_BUILD=$(git rev-list --count HEAD)
|
||||||
GIT_HASH=$(git rev-parse HEAD)
|
GIT_HASH=$(git rev-parse HEAD)
|
||||||
OPENELEC_VERSION=$OPENELEC_VERSION-$BUILD_DATE-r$GIT_BUILD
|
GIT_ABBREV=$(git log -1 --pretty=format:%h)
|
||||||
|
OPENELEC_VERSION=$OPENELEC_VERSION-$BUILD_DATE-r$GIT_BUILD-g$GIT_ABBREV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TARGET_VERSION="$PROJECT.$TARGET_ARCH-$OPENELEC_VERSION"
|
TARGET_VERSION="$PROJECT.$TARGET_ARCH-$OPENELEC_VERSION"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user