microsoft / msix-packaging

MSIX SDK
MIT License
990 stars 168 forks source link

Feature request - unpack needs single-file / footprint-file option #352

Open jonwis opened 4 years ago

jonwis commented 4 years ago

Unpacking a multi-mb/multi-gb MSIX to pull out one file is wasteful. Please include a "-f" and "-ff" option, like:

# Unpack just the muffin.wasm and a group of DLLs
makemsix unpack -p file.msix -d .\output -ss -f code-assets\muffin.wasm -f appsvcimpl\*.dll

# Unpack just the catalog and manifest
makemsix unpack -p file.msix -d .\output -ss -ff codeintegrity -ff manifest

Where the "-ff" options are for the footprint files.

Option File
manifest The AppXManifest.xml for the package
blockmap The blockmap XML file
signature The signature file, if present
codeintegrity The catalog file, if present
contentgroupmap The content group map file
DrusTheAxe commented 4 years ago

Is -ff needed?

Footprint files are unique filenames; you can't put a 'content' file in an MSIX named appxmanifest.xml or signature.p7x. Filenames are unique so -f appxmanifest.xml would work equally well as -f foo.exe

Footprint files have well defined unique names, so -ff manifest as an alias for -f appxmanifest.xml seems unnecessary overkill