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

@@ -39,7 +39,7 @@ public class Plugin : IViewer
".msix", ".msixbundle", // Windows MSIX installer
// macOS
//".dmg", // macOS DMG
".dmg", // macOS DMG
// iOS
".ipa", // iOS IPA
@@ -79,6 +79,7 @@ public class Plugin : IViewer
".msi" => new Size { Width = 560, Height = 230 },
".msix" or ".msixbundle" or ".appx" or ".appxbundle" => new Size { Width = 560, Height = 328 },
".deb" => new Size { Width = 600, Height = 345 },
".dmg" => new Size { Width = 560, Height = 510 },
".wgt" or ".wgtu" => new Size { Width = 600, Height = 345 },
_ => throw new NotSupportedException("Extension is not supported."),
};
@@ -100,6 +101,7 @@ public class Plugin : IViewer
".msi" => new MsiInfoPanel(context),
".msix" or ".msixbundle" or ".appx" or ".appxbundle" => new AppxInfoPanel(context),
".deb" => new DebInfoPanel(context),
".dmg" => new DmgInfoPanel(context),
".wgt" or ".wgtu" => new WgtInfoPanel(context),
_ => throw new NotSupportedException("Extension is not supported."),
};