Support .dmg
Some checks are pending
MSBuild / build (push) Waiting to run
MSBuild / publish (push) Blocked by required conditions

This commit is contained in:
ema
2025-06-15 07:04:00 +08:00
parent 679b00fe71
commit c9fa5ff43b
10 changed files with 806 additions and 1 deletions

View File

@@ -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)