Skip to content

Commit

Permalink
add msix/msixbundle support (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Weinan Shen <weinshen@microsoft.com>
  • Loading branch information
weinanshen and Weinan Shen authored Apr 1, 2021
1 parent b640d1b commit f7a76a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}

Expand All @@ -41,7 +48,7 @@ static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("AppPackageInfo <appxmanifest.xml|package.appxmanifest|<package>.[appx|appxbundle]>");
Console.WriteLine("AppPackageInfo <appxmanifest.xml|package.appxmanifest|<package>.[appx|appxbundle]>|<package>.[msix|msixbundle]>");
return;
}
var filename = args[0];
Expand Down

0 comments on commit f7a76a8

Please # to comment.