mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-27 12:51:37 +00:00
Support .dmg
This commit is contained in:
@@ -156,6 +156,10 @@ public class IpaReader
|
||||
{
|
||||
IconName = iconFiles.LastOrDefault() as string;
|
||||
}
|
||||
else if (primaryIcons.TryGetValue("CFBundleIconFile", out object iconFileNode) && iconFileNode is object iconFile)
|
||||
{
|
||||
IconName = iconFile as string;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(IconName))
|
||||
@@ -165,6 +169,13 @@ public class IpaReader
|
||||
IconName = iconFiles.LastOrDefault() as string;
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(IconName))
|
||||
{
|
||||
if (InfoPlistDict.TryGetValue("CFBundleIconFile", out object iconFilesNode) && iconFilesNode is object iconFile)
|
||||
{
|
||||
IconName = iconFile as string;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(IconName))
|
||||
{
|
||||
foreach (ZipEntry entry in zip)
|
||||
|
Reference in New Issue
Block a user