VERSIONING: fixed in ES-DE -fix6

This commit is contained in:
Xargon 2022-05-25 22:27:51 +09:00
parent 9cbef7c3d0
commit baca9412a8

View file

@ -72,12 +72,20 @@ modules:
- name: version-initialization
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/retrodeck/
- VERSION="cooker"
- if [[ $VERSION == "cooker" ]]; then VERSION=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')-$(date +'%Y%m%d_%H%M'); fi
- echo $VERSION >> ${FLATPAK_DEST}/retrodeck/version
- echo "DEBUG - reading version "
- cat ${FLATPAK_DEST}/retrodeck/version
- |
git checkout ${GITHUB_REF_NAME}
mkdir -p ${FLATPAK_DEST}/retrodeck/
VERSION="cooker"
if [[ $VERSION == "cooker" ]];
then
VERSION=$(git describe --tags | tr - .)
fi
echo $VERSION >> ${FLATPAK_DEST}/retrodeck/version
cat ${FLATPAK_DEST}/retrodeck/version
sources:
- type: git
url: https://github.com/XargonWan/RetroDECK.git
branch: cooker
- name: xmlstarlet
config-opts: