mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-23 05:49:43 +00:00
CI: Fix Flatpak version generation
This commit is contained in:
parent
5c0dab4fe8
commit
dcfc48d84b
@ -13,15 +13,12 @@ OUTFILE="${OUTDIR}/${APPID}.metainfo.xml"
|
|||||||
|
|
||||||
pushd "${SCRIPTDIR}" >/dev/null
|
pushd "${SCRIPTDIR}" >/dev/null
|
||||||
GIT_DATE=$(git log -1 --pretty=%cd --date=short)
|
GIT_DATE=$(git log -1 --pretty=%cd --date=short)
|
||||||
GIT_VERSION=$(git tag --points-at HEAD)
|
|
||||||
GIT_HASH=$(git rev-parse HEAD)
|
GIT_HASH=$(git rev-parse HEAD)
|
||||||
|
GIT_VERSION=$(git describe --dirty | tr -d '\r\n')
|
||||||
if [[ "${GIT_VERSION}" == "" ]]; then
|
if [[ "${GIT_VERSION}" == "" ]]; then
|
||||||
GIT_VERSION=$(git describe --dirty | tr -d '\r\n')
|
|
||||||
if [[ "${GIT_VERSION}" == "" ]]; then
|
|
||||||
GIT_VERSION=$(git rev-parse HEAD)
|
GIT_VERSION=$(git rev-parse HEAD)
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
echo "GIT_DATE: ${GIT_DATE}"
|
echo "GIT_DATE: ${GIT_DATE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user