Skip to content

Preserve MSIX manifest content-type overrides during signing - #50

Open
Marc-André Moreau (mamoreau-devolutions) wants to merge 1 commit into
masterfrom
copilot/fix-signing-run
Open

Marc-André Moreau (mamoreau-devolutions) wants to merge 1 commit into
masterfrom
copilot/fix-signing-run

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Preserve explicit manifest content-type overrides when staging MSIX/AppX packages for portable signing.
  • Keep generic XML defaults for payload files and retain strict reserved MIME validation.
  • Add a regression covering MakeAppx output with an XML default and a manifest override.

Fixes the portable signing failure in https://github.com/Devolutions/pwsh-distro/actions/runs/43315758239. Staging previously discarded a valid manifest override, causing the manifest to resolve to text/xml.

Validation

  • Regression reproduced the failure before the fix and passes afterward.
  • cargo test -p psign-sip-digest --locked (196 passed)
  • cargo clippy -p psign-sip-digest --all-targets --locked -- -D warnings
  • cargo test -p psign-portable-core staged_and_signed_msix_use_appx_zip64_layout --locked
  • cargo fmt --all and git diff --check

No pwsh-distro packaging change is required; integration needs a published psign version containing this fix.

…staging

MakeAppx emits an xml Default (text/xml) plus an explicit AppxManifest.xml Override. The staged [Content_Types].xml dropped the valid Override, so the Default took effect and signing failed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant