Prepare support .rpm
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled

This commit is contained in:
ema
2025-06-18 00:54:30 +08:00
parent 01faaa7ce0
commit 21af7ad7ff
7 changed files with 538 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ public class Plugin : IViewer
// Ubuntu
".deb", // Debian Package
".appimage", // AppImage Format
// ".rpm", // Red Hat Package Manager
// Others
".wgt", ".wgtu", // UniApp Widget
@@ -82,6 +83,7 @@ public class Plugin : IViewer
".deb" => new Size { Width = 600, Height = 345 },
".dmg" => new Size { Width = 560, Height = 510 },
".appimage" => new Size { Width = 600, Height = 300 },
".rpm" => new Size { Width = 600, Height = 300 },
".wgt" or ".wgtu" => new Size { Width = 600, Height = 345 },
_ => throw new NotSupportedException("Extension is not supported."),
};
@@ -105,6 +107,7 @@ public class Plugin : IViewer
".deb" => new DebInfoPanel(context),
".dmg" => new DmgInfoPanel(context),
".appimage" => new AppImageInfoPanel(context),
".rpm" => new RpmInfoPanel(context),
".wgt" or ".wgtu" => new WgtInfoPanel(context),
_ => throw new NotSupportedException("Extension is not supported."),
};