From c95887a93f71c6f3d645860e5bb211447f4a2131 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Mon, 6 Jul 2026 17:37:47 +0800 Subject: [PATCH] one time bump microsoft appstore version to 2.4.3 --- scripts/msix/build_msix.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/msix/build_msix.ps1 b/scripts/msix/build_msix.ps1 index 523e667bed..46dfb75081 100644 --- a/scripts/msix/build_msix.ps1 +++ b/scripts/msix/build_msix.ps1 @@ -29,6 +29,18 @@ if ($versionContent -notmatch 'set\(SoftFever_VERSION "(\d+)\.(\d+)\.(\d+)') { throw "Could not parse SoftFever_VERSION from version.inc" } $msixVersion = "$($Matches[1]).$($Matches[2]).$($Matches[3]).0" + +# One-off override: the wrong 2.4.2.0 build was already published to the Store, which always +# serves the highest version and won't accept re-uploading an existing one. Replacing it needs a +# strictly higher version with the revision field still 0, so the patch digit is bumped to 2.4.3.0. +# The app itself stays 2.4.2 (SoftFever_VERSION). Clear this once SoftFever_VERSION >= 2.4.3. +$msixVersionOverride = '2.4.3.0' +if ($msixVersionOverride) { + if ($msixVersionOverride -notmatch '^\d+\.\d+\.\d+\.0$') { + throw "MSIX version override '$msixVersionOverride' must be Major.Minor.Build.0 - the Store rejects a non-zero revision field." + } + $msixVersion = $msixVersionOverride +} Write-Output "MSIX version: $msixVersion" if (-not (Test-Path (Join-Path $InstallDir 'orca-slicer.exe'))) {