Repository navigation
ci: migrate from the deprecated microsoft/store-submission action to the MSStore CLI - #7888
Conversation
microsoft/store-submission is deprecated and its repository is being archived. Switch to microsoft/microsoft-store-apppublisher + the MSStore CLI, which is the supported replacement and covers both packaged (MSIX) and unpackaged (MSI/EXE) applications.
🍎 MacOS DMG universal buildsDownload a MacOS DMG universal build of this PR for testing. 📱 Android buildsDownload an Android arm64 build of this PR for testing. Other Android architectures🪟 Windows buildsDownload a Windows build of this PR for testing and for arm64. (Built from commit 1755f59) 🐧 Linux AppImage buildsDownload a Linux AppImage build of this PR for testing. |
microsoft/microsoft-store-apppublisher@v1.4 is a lightweight tag pointing directly at a commit, so it can be moved. This step handles Partner Center credentials, so pin the action to cc9910a8d59f2eb55cbb83df0a3800cf3b5300e0 and pin the CLI it downloads to v0.4.1 instead of the default 'latest'. v0.4.1 is what 'latest' resolves to today, so this freezes current behaviour rather than changing it. microsoft/PowerToys pins this same action the same way.
|
@m-kuhn , should we wait until after we branch off QField 4.3 to merge this? |
|
I don't see a lot we can win by holding off longer.
Do you see good reasons to wait? |
|
@m-kuhn , the only reason is that I was hoping for a friction-less 4.3 release after two release cycles where we had issues 😉 but that's hardly a good reason. Let's go ahead then and deal with any fallout issues immediately! |
|
@azchohfi , thanks for this BTW. I'm not exactly sure whether this was automated but in any case your profile seems human enough to share our appreciation 😉 |
|
Yes and no 😄 — Copilot did the typing, I did the aiming. (I maintain the action that's being archived, hence the cleanup duty.) |
|
@azchohfi , wonderful, thanks :) |
|
I might have spoken too soon 😉 @azchohfi , we're seeing this error when installing QField's latest version (which was released using the migrated MSStore action:
Is that something you've seen somewhere else? |
The Windows installer switched from NSIS .exe to WiX .msi in opengisch#7753, but the Store submission payload still declared packageType "exe", passed the NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code reference. Partner Center uses packageType to decide how to launch the downloaded installer: "exe" is executed directly, "msi" is handed to msiexec. So the Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it directly. An MSI is not a PE binary, so Windows reports "Unsupported 16-Bit Application" and the install fails. - packageType: exe -> msi - installerParameters: /S -> /quiet /norestart (msiexec) - drop genericDocUrl, which the API documents as exe-only Fixes the install failure reported on opengisch#7888.
|
Thanks for the ping, and sorry for the slow reply. Good news: this isn't the CLI migration. The payload was carried across verbatim, so the old action would have sent exactly the same JSON. The actual cause is #7753, which switched the Windows installer from NSIS It only showed up in 4.3 because the
Fix is in #8011 — three fields on both package entries. Worth noting the honest version: the mismatch was sitting in the same file I edited ( |
The Windows installer switched from NSIS .exe to WiX .msi in #7753, but the Store submission payload still declared packageType "exe", passed the NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code reference. Partner Center uses packageType to decide how to launch the downloaded installer: "exe" is executed directly, "msi" is handed to msiexec. So the Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it directly. An MSI is not a PE binary, so Windows reports "Unsupported 16-Bit Application" and the install fails. - packageType: exe -> msi - installerParameters: /S -> /quiet /norestart (msiexec) - drop genericDocUrl, which the API documents as exe-only Fixes the install failure reported on #7888.
The Windows installer switched from NSIS .exe to WiX .msi in #7753, but the Store submission payload still declared packageType "exe", passed the NSIS silent switch /S, and pointed genericDocUrl at the NSIS error code reference. Partner Center uses packageType to decide how to launch the downloaded installer: "exe" is executed directly, "msi" is handed to msiexec. So the Store downloaded QField-x64.msi, saved it as <guid>.exe and ran it directly. An MSI is not a PE binary, so Windows reports "Unsupported 16-Bit Application" and the install fails. - packageType: exe -> msi - installerParameters: /S -> /quiet /norestart (msiexec) - drop genericDocUrl, which the API documents as exe-only Fixes the install failure reported on #7888.

Why
microsoft/store-submissionis deprecated and the repository is being archived (see microsoft/store-submission#27). Archiving does not break anything —uses: microsoft/store-submission@v1will keep resolving — but there will be no further fixes, features, or security updates, and it has open issues that will never be addressed (notably #20: no certificate or federated/managed-identity auth).The supported replacement is the MSStore CLI, put on the runner by
microsoft/microsoft-store-apppublisher(the action formerly namedmicrosoft/setup-msstore-cli). It handles both packaged (MSIX) and unpackaged (MSI/EXE) apps and is actively maintained.microsoft/PowerToysalready runs on it.I'm doing a sweep of the repos still referencing the old action so nobody is caught out by the archive.
What changed
deploy (ms store)in.github/workflows/windows.ymlnow sets up the MSStore CLI and calls it directly. Same job gating (release+refs/tags/v), same three steps, same secrets, same package payload for the x64/arm64 NSIS.exepackages.Worth knowing
This job currently fails on roughly 1 in 4 releases. Across the last 12 months of
release-triggered runs: 27 success, 10 failure, 1 cancelled. Every failure is the same one —Update Draft Submissionpolls…re-printing
Waiting 10 seconds.until the job times out. That retry loop lives in the action and was never going to be fixed. The CLI has its own polling implementation (plus--skipInitialPollingand amsstore submission pollcommand if you want to control it explicitly), so this migration is also the practical way off that failure mode.Command mapping used
microsoft/store-submissioncommand: configure+tenant-id/seller-id/client-id/client-secretmsstore reconfigure --tenantId … --sellerId … --clientId … --clientSecret …command: update+product-updatemsstore submission update <productId> '<json>'command: publishmsstore submission publish <productId>type: win32/type: packagedNotes
msstore submission updatedeserializes intoUpdatePackagesRequest→{ "packages": [ { packageUrl, languages, architectures, isSilentInstall, installerParameters, packageType, genericDocUrl, … } ] }, which is the same shapeproduct-updatetook, so the payload carried over verbatim.env:and referenced as shell variables rather than interpolated straight into the command line — same behaviour, and it keeps them out of the process command line.