From 2ed8ba1147dd559a6c5c129e923cb238031be247 Mon Sep 17 00:00:00 2001 From: Philipp Verpoort Date: Thu, 5 Mar 2026 01:39:51 +0100 Subject: [PATCH] Bugfix: updated versioning of MSIX for MS Store. --- .github/workflows/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77e2608..4fe2e26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,14 +64,15 @@ jobs: if: runner.os == 'Windows' shell: pwsh run: | + $ErrorActionPreference = "Continue" $tag = git describe --tags --abbrev=0 2>$null - if ($tag) { - $semver = $tag -replace '^v', '' - } else { + if ($LASTEXITCODE -ne 0 -or -not $tag) { $semver = "2.0.0" + } else { + $semver = $tag -replace '^v', '' } - $commitCount = git rev-list --count HEAD - $version = "$semver.$commitCount" + $global:LASTEXITCODE = 0 + $version = "$semver.0" (Get-Content packaging\windows\AppxManifest.xml) ` -replace 'Version="0.0.0.0"', "Version=""$version""" | Set-Content packaging\windows\AppxManifest.xml