Skip to content

Submit a multi-arch .msixbundle to the Store instead of a package directory - #147

Merged
michaeljolley merged 1 commit into
mainfrom
michaeljolley-sturdy-chainsaw
Jul 5, 2026
Merged

Submit a multi-arch .msixbundle to the Store instead of a package directory#147
michaeljolley merged 1 commit into
mainfrom
michaeljolley-sturdy-chainsaw

Conversation

@michaeljolley

Copy link
Copy Markdown
Contributor

Problem

Two separate failures in the store-submit job:

  1. Original bug (runs before Fix Store submission re-publishing stale packages #146): msstore publish WeatherExtension -i msix-packages passed the project name as the positional argument. The msstore CLI treated it as a project, ran its own project detection/packaging, gathered none of our prebuilt packages, and committed the submission that Partner Center clones from the last published one — re-publishing stale 1.1.0.0 packages every release, even though 1.2.x artifacts were built and downloaded.

  2. Fix Store submission re-publishing stale packages #146's regression: That PR passed a .msixupload file to msstore publish -i. But the installed CLI (microsoft/microsoft-store-apppublisher@v1.3 → msstore CLI v0.3.9) treats -i/--inputDirectory as a directory, so the job failed at runtime with Input directory does not exist.

Root cause

The installed msstore CLI selects its publisher from the file extension of the positional pathOrUrl argument (.msix, .msixbundle, .msixupload) and uploads exactly that one file — it does not gather sibling files or rebuild. Passing a project name or a directory sends it down the fragile project-detection path.

Fix

Build a single multi-architecture .msixbundle from the prebuilt x64/arm64 .msix packages with makeappx, and pass it as the positional argument (with -id to resolve the app):

msstore publish "<...>.msixbundle" -id "<STORE_PRODUCT_ID>"

This is selected deterministically by extension and carries both architectures at the correct version, so the freshly built packages are what actually gets submitted.

Notes

  • The winget-publish failure is tracked separately — the package exists in microsoft/winget-pkgs but komac reports "does not exist", which points at the WINGET_TOKEN PAT scope/expiry or a komac regression, not this change.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

…ectory

PR #146's approach passed a '.msixupload' file to 'msstore publish -i', but the
installed msstore CLI (v0.3.9) treats -i/--inputDirectory as a directory, so the
job failed at runtime with 'Input directory does not exist.'

The msstore CLI selects its publisher from the *extension* of the positional
argument and uploads exactly that file (no sibling gathering, no rebuild). Build
one multi-architecture .msixbundle from the prebuilt x64/arm64 .msix packages
with makeappx and pass it as the positional argument, so both architectures are
submitted at the correct version deterministically -- ending the stale 1.1.0.0
re-publish.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@michaeljolley
michaeljolley merged commit 58a4b60 into main Jul 5, 2026
2 checks passed
@michaeljolley
michaeljolley deleted the michaeljolley-sturdy-chainsaw branch July 5, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant