VERSIONING: added some debug code

This commit is contained in:
Xargon 2022-05-25 12:52:48 +09:00
parent 9848bb8a1f
commit 3469db3f45
2 changed files with 10 additions and 1 deletions

View file

@ -156,6 +156,13 @@ jobs:
id: version
run: echo "##[set-output name=version;]$(cat $(find . -name version))"
- name: DEBUG - Print version name
shell: bash
run: |
echo "DEBUG: printing version from version file"
echo "${{ steps.version.outputs.version }}"
id: extract_branch
- name: Publish the flatpak in a new cooker release
uses: ncipollo/release-action@v1
with:

View file

@ -76,6 +76,8 @@ modules:
- 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
- $VERSION >> ${FLATPAK_DEST}/retrodeck/version
- echo "DEBUG - reading version "
- cat ${FLATPAK_DEST}/retrodeck/version
- name: xmlstarlet
config-opts:
@ -148,7 +150,7 @@ modules:
- type: shell
commands:
- sed -i 's/QUIT EMULATIONSTATION/QUIT RETRODECK/g' es-app/src/guis/GuiMenu.cpp
- sed -i 's#"EMULATIONSTATION-DE V" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#"RetroDECK v$(cat ${FLATPAK_DEST}/retrodeck/version), ES-DE v" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#g' es-app/src/guis/GuiMenu.cpp
- sed -i 's#"EMULATIONSTATION-DE V" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#"RetroDECK v$((cat ${FLATPAK_DEST}/retrodeck/version)), ES-DE v" + Utils::String::toUpper(PROGRAM_VERSION_STRING)#g' es-app/src/guis/GuiMenu.cpp
# ES-DE - END