msbuild-structured-log-viewer: add a binlog mimetype
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-binlog">
|
||||
<comment xml:lang="en">MSBuild Structured Log</comment>
|
||||
<glob pattern="*.binlog"/>
|
||||
<icon name="msbuild-structured-log-viewer" />
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
@@ -38,6 +38,7 @@ buildDotnetModule (finalAttrs: {
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
install -Dm444 $src/src/StructuredLogViewer/icons/msbuild-structured-log-viewer.png $out/share/icons/hicolor/32x32/apps/msbuild-structured-log-viewer.png
|
||||
install -Dm444 ${./mimetype.xml} $out/share/mime/packages/binlog.xml
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace src/StructuredLogViewer.Avalonia/Info.plist \
|
||||
@@ -56,6 +57,9 @@ buildDotnetModule (finalAttrs: {
|
||||
icon = "msbuild-structured-log-viewer";
|
||||
exec = finalAttrs.meta.mainProgram;
|
||||
categories = [ "Development" ];
|
||||
mimeTypes = [
|
||||
"application/x-binlog"
|
||||
];
|
||||
};
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
Reference in New Issue
Block a user