Skip to content

Add makepkg2 uploadsource probe and XGPM flag for MSIXVC2 uploads#125

Merged
RafaelHinojosa merged 1 commit into
mainfrom
users/rafaelh/UploadSource-XGPM-MSIXVC2
May 15, 2026
Merged

Add makepkg2 uploadsource probe and XGPM flag for MSIXVC2 uploads#125
RafaelHinojosa merged 1 commit into
mainfrom
users/rafaelh/UploadSource-XGPM-MSIXVC2

Conversation

@RafaelHinojosa
Copy link
Copy Markdown
Collaborator

Probe makepkg2 at upload time via 'supports uploadsource' (exit 0 = supported). When supported, pass /uploadsource XGPM to makepkg2 upload command args.

  • SupportsUploadSourceFlag() probes every call (no cache) with 5s timeout
  • Graceful fallback: old makepkg2 versions (e.g. v2.2.25) exit non-zero, flag is omitted
  • Uses IngestionExtensions.XgpmUploadSource constant for consistency with ClientApi
  • 19 probe tests + 9 adversarial tests (timeout, exit 255, stderr, directory path, etc.)

Probe makepkg2 at upload time via 'supports uploadsource' (exit 0 = supported).
When supported, pass /uploadsource XGPM to makepkg2 upload command args.

- SupportsUploadSourceFlag() probes every call (no cache) with 5s timeout
- Graceful fallback: old makepkg2 versions (e.g. v2.2.25) exit non-zero, flag is omitted
- Uses IngestionExtensions.XgpmUploadSource constant for consistency with ClientApi
- 19 probe tests + 9 adversarial tests (timeout, exit 255, stderr, directory path, etc.)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread src/PackageUploader.UI/ViewModel/Msixvc2UploadViewModel.cs
@RafaelHinojosa RafaelHinojosa merged commit 5337e52 into main May 15, 2026
7 checks passed
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.

2 participants