Repository navigation
Support MSIX bundles and project mode in winapp.pack - #309
Merged
Jaylyn Barbee (Jaylyn-Barbee) merged 11 commits intoNov 9, 2026
Merged
Jaylyn Barbee (Jaylyn-Barbee) merged 11 commits into
Jaylyn Barbee (Jaylyn-Barbee) merged 11 commits into
Conversation
Chiara Mooney (chiaramooney)
force-pushed
the
chiaramooney-winapp-pack-bundle-and-cert-opts
branch
from
October 19, 2026 20:40
f6bcb03 to
63caab3
Compare
VSIX Build
Updated 2026-10-20 22:43:20 UTC · commit |
Chiara Mooney (chiaramooney)
marked this pull request as ready for review
October 20, 2026 22:21
The winapp CLI creates an MSIX bundle when its variadic <input-folder> argument receives more than one folder, but the extension's build output picker was single-select, so bundles were unreachable. Make the pack picker multi-select. Selecting two or more folders now passes them all positionally and the CLI emits a .msixbundle. Browse... keeps its existing item and styling; ticking it takes precedence over other selections and opens a folder dialog that also accepts multiple folders. winapp.run keeps the single-select picker. Also fix artifact parsing: a bundle run prints '(package) Bundle:' rather than '(package) Package:', so a successful bundle previously parsed to undefined and was reported as a packaging failure. Skip the self-contained architecture mismatch warning for bundles. The CLI packs each bundle slice with an explicit per-slice architecture override, so every package gets a matching runtime; only the single-package path resolves the runtime from the machine architecture. Duplicate-architecture selections are intentionally left to the CLI, which detects architecture from PE headers and reports both offending folders. Co-authored-by: Copilot App <[email protected]>
The multi-folder bundle selection logic lived inline in the winapp.pack handler, so it had no automated coverage. Move the pure parts into src/pack-args.ts and cover them with unit tests. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Chiara Mooney (chiaramooney)
force-pushed
the
chiaramooney-winapp-pack-bundle-and-cert-opts
branch
from
November 9, 2026 21:29
24142d9 to
2821787
Compare
Jaylyn Barbee (Jaylyn-Barbee)
approved these changes
Nov 9, 2026
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.
Description
Expands WinApp: Create MSIX Package or Bundle to support both WinApp CLI packaging modes:
.csproj,.sln, and.slnxtargets using the project discovery introduced by Surfacewinapp runproject mode in the palette and debugger #283, resolves solutions to one concrete application.csproj, and builds one or more selected architectures..msixand two or more folders create an.msixbundle.Project mode supports x64, arm64, and x86, with the current process architecture preselected. Selecting multiple architectures emits repeated
--archarguments and creates an MSIX bundle. Users can use the CLI's Release default, select Debug, or type a custom MSBuild configuration.Signing choices are source-aware: project mode can honor project signing settings, generate and install a development certificate, or explicitly create unsigned output. Existing-output mode retains its current development-certificate choice. The change also preserves the self-contained architecture warning only where it is meaningful, recognizes the CLI's
📦 Bundle:marker, generalizes artifact containment roots, and surfaces explicit CLI error text.Usage Example
Run WinApp: Create MSIX Package or Bundle and choose a source.
For project mode:
.csproj..msix, or multiple architectures for an.msixbundle.The resulting bundle invocation is equivalent to:
For existing output, select one or more architecture-specific folders:
Related Issue
Closes #307
Advanced pack options that remain intentionally deferred are tracked in #322.
Type of Change
Checklist
.\scripts\build-vsce.ps1locallyScreenshots / Demo
No screenshot attached. The command now starts with a source picker, reuses the established project/solution picker styling, and uses multi-select checkboxes for project architectures and existing build-output folders.
Additional Notes
Validation on the current branch:
npm run test:unit— passed, 1476/1476 tests, including a newpack-cli-contract.test.tsagainst the repository-pinned WinApp CLI v0.7.1.npm run lint— passed with 0 errors and 10 pre-existing warnings.npm run package— passed..\scripts\build-vsce.ps1— passed, including 1476/1476 unit tests.run-target-picker.spec.ts— all existing run-target regressions and both project-pack picker scenarios passed (19/19); the subsequently added existing-output bundle scenario also passed in its targeted run..msixfrom a.csproj..msixbundleusing repeated--archarguments.The full E2E suite's previously known
sign-quickpick.spec.tsfailures remain unrelated to this change and were reproduced against pristinemain. The project discovery refactor was specifically covered by the complete run-target picker regression suite.The CLI rejects duplicate architectures using PE-header inspection. Selecting unrelated existing-output folders remains treated as user error, as previously agreed.
AI Description
This section is auto-generated by AI when the PR is opened or updated. To opt out, delete this entire section including the marker comments.