diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index a9485500..da92c913 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -224,7 +224,7 @@ jobs: - name: Build run: | - VERSION=$(git describe --tags) + VERSION=$(git describe --tags --always) if [ ${{ matrix.buildtype }} = 'Oculus' ] then SUFFIX="" @@ -331,13 +331,13 @@ jobs: working-directory: wivrn/debian run: | mv changelog changelog.orig - echo "wivrn ("$(git describe --tags | sed s/^v//)") "$(lsb_release -c -s)"; urgency=medium" > changelog - echo "" >> changelog - echo " * Nightly build" >> changelog - echo "" >> changelog - echo " -- github-actions <41898282+github-actions@users.noreply.github.com> "$(date -R) >> changelog - echo "" >> changelog - cat changelog.orig | sed s/unstable/$(lsb_release -c -s)/ >> changelog + echo "wivrn ("$( (git describe --tags || echo 0) | sed s/^v//)") "$(lsb_release -c -s)"; urgency=medium" > changelog + echo "" >> changelog + echo " * Nightly build" >> changelog + echo "" >> changelog + echo " -- github-actions <41898282+github-actions@users.noreply.github.com> "$(date -R) >> changelog + echo "" >> changelog + cat changelog.orig | sed s/unstable/$(lsb_release -c -s)/ >> changelog cat changelog - name: Edit changelog (release) diff --git a/tools/gen_flatpak_manifest.sh b/tools/gen_flatpak_manifest.sh index 94b1d1b1..455b860f 100755 --- a/tools/gen_flatpak_manifest.sh +++ b/tools/gen_flatpak_manifest.sh @@ -28,7 +28,7 @@ cd $(dirname $0) GIT_TAG=$(git describe --exact-match --tags 2>/dev/null || true) GIT_SHA=$(git rev-parse HEAD) GIT_COMMIT=$(git describe --exact-match --tags 2>/dev/null || git rev-parse HEAD) -GIT_DESC=$(git describe --tags) +GIT_DESC=$(git describe --tags --always) MONADO_COMMIT=$(grep -zo "FetchContent_Declare(monado[^)]*)" ../CMakeLists.txt | sed -ze "s/^.*GIT_TAG *\([^ )]*\).*$/\1/" | tr -d '\0') BOOSTPFR_URL=$(grep -zo "FetchContent_Declare(boostpfr[^)]*)" ../CMakeLists.txt | sed -ze "s/^.*URL *\([^ )]*\).*$/\1/" | tr -d '\0')