Submit a multi-arch .msixbundle to the Store instead of a package directory - #147
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Two separate failures in the
store-submitjob:Original bug (runs before Fix Store submission re-publishing stale packages #146):
msstore publish WeatherExtension -i msix-packagespassed 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 stale1.1.0.0packages every release, even though1.2.xartifacts were built and downloaded.Fix Store submission re-publishing stale packages #146's regression: That PR passed a
.msixuploadfile tomsstore publish -i. But the installed CLI (microsoft/microsoft-store-apppublisher@v1.3→ msstore CLI v0.3.9) treats-i/--inputDirectoryas a directory, so the job failed at runtime withInput directory does not exist.Root cause
The installed msstore CLI selects its publisher from the file extension of the positional
pathOrUrlargument (.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
.msixbundlefrom the prebuilt x64/arm64.msixpackages withmakeappx, and pass it as the positional argument (with-idto resolve the app):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
microsoft/winget-pkgsbut komac reports "does not exist", which points at theWINGET_TOKENPAT scope/expiry or a komac regression, not this change.Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com