From f7a76a8558dd2f3ee38b0bad11bc89850da79e33 Mon Sep 17 00:00:00 2001 From: Weinan Shen <47931477+weinanshen@users.noreply.github.com> Date: Thu, 1 Apr 2021 14:58:26 -0700 Subject: [PATCH] add msix/msixbundle support (#1) Co-authored-by: Weinan Shen --- Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 3f8c3d5..e986dad 100644 --- a/Program.cs +++ b/Program.cs @@ -30,6 +30,13 @@ static string ReadAppxManifestFromZip(Stream stream) return ReadAppxManifestFromZip(appxStream); } } + else if (entry.Name.EndsWith(".msix", StringComparison.OrdinalIgnoreCase)) + { + using (var appxStream = entry.Open()) + { + return ReadAppxManifestFromZip(appxStream); + } + } } } @@ -41,7 +48,7 @@ static void Main(string[] args) { if (args.Length != 1) { - Console.WriteLine("AppPackageInfo .[appx|appxbundle]>"); + Console.WriteLine("AppPackageInfo .[appx|appxbundle]>|.[msix|msixbundle]>"); return; } var filename = args[0];