mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
VERSIONING: fixed in ES-DE -fix6
This commit is contained in:
parent
df7ffaa121
commit
bf75b6ee59
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue