From 3469db3f45c14c1a01dae64adb26baf35afcc77f Mon Sep 17 00:00:00 2001 From: Xargon Date: Wed, 25 May 2022 12:52:48 +0900 Subject: [PATCH] VERSIONING: added some debug code --- .github/workflows/cooker.yml | 7 +++++++ net.retrodeck.retrodeck.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker.yml b/.github/workflows/cooker.yml index 564d05c2..be307366 100644 --- a/.github/workflows/cooker.yml +++ b/.github/workflows/cooker.yml @@ -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: diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index c1a17407..5f60f2c7 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -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