Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 msix support #217

Merged
merged 11 commits into from Dec 1, 2020
Merged

Conversation

HowardWolosky
Copy link
Member

Adds PackageTool support for the msix* file extensions by cherry-picking the following commits from the v2 branch:

94d98df
d7d1a4c
bc7396f
cf2379a
c414efd

This combination of commits does the following:

  • Adds support for .msix, .msixbundle, .mxixupload package file extensions
  • Proper handling of container files which contain stub packages
  • Also adds support for creating submission pacakges for .xvc files (Xbox packages). Submitting those packages using the v1 API however remains untested.
  • Makes all Test-Path commands use -ErrorAction Ignore to avoid any erroneous errors being reported due to lack of file access (all we care about is getting a $true or $false response from those function calls).

Resolves #216

HowardWolosky and others added 11 commits November 18, 2020 21:44
* AAA games use an .xvc package file format which is encrypted and thus can't be inspected
  for metadata properties.  In these scenarios, we'll accept the format but disable trying
  to rename or add the additional metadata to the json (which effectively removes the ability
  to use -UpdatePackages during Update-Submission).

* Fix bug with trying to use ConvertFrom-ExistingSubmission when there's only one listing
  (since `Get-Listing` would return a single item instead of an array, it didn't have a `Count`
  property and thus hit a divide-by-zero error when trying to display a status update).

(cherry picked from commit 94d98df)
Additionally, making all `Test-Path` commands in PackageTool use
`-ErrorAction Ignore` to avoid any erroneous errors being spit out
from lack of file access.  All we care about is getting a `$true`
or `$false` result from those commands.

(cherry picked from commit d7d1a4c)
Adds '.msixupload' to the list of extensions for files
that should be able to be packaged but not inspected (for
version numbers).  This means that .msixupload files will
not support the `-UpdatePackages` switch.

(cherry picked from commit bc7396f)
…on package (microsoft#163)

Currently, StoreBroker combines `.msix*` packages into `.json`/`.zip` pairs without inspecting the metadata within as it does for `.appx*` apps. This change will enable metadata inspection for `.msix`, `.msixbundle`, and `.msixupload` file extensions. This PR addresses issue microsoft#147 (for users using v2).

- Created `New-SubmissionPackage` for `.appxbundle` with and without this change to verify no different in generated `.json`
- Created `New-SubmissionPackage` for `.msixbundle` with this change and verified appropriate values were set

(cherry picked from commit cf2379a)
(cherry picked from commit c414efd)
@HowardWolosky HowardWolosky merged commit 14453c5 into microsoft:master Dec 1, 2020
@HowardWolosky HowardWolosky deleted the v1MsixSupport branch December 1, 2020 20:04
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.

msixupload bundle not supported by New-SubmissionPackage
2 participants