add Linux-specific content for MIME associations and FreeDesktop application entries

This commit is contained in:
Michael Becker 2019-12-02 08:05:10 -05:00
parent db744f8472
commit 30364c5c9c
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12
7 changed files with 188 additions and 0 deletions

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Universal Editor Linux-Specific Content")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Mike Becker's Software")]
[assembly: AssemblyProduct("Universal Editor")]
[assembly: AssemblyCopyright("Copyright © 2014-2019 Mike Becker's Software")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f06910f7-0c0e-41ec-b0b2-cb7ef1d18d8e")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>UniversalEditor.Content.PlatformIndependent</RootNamespace>
<AssemblyName>UniversalEditor.Content.PlatformIndependent</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\..\..\MichaelBecker.snk</AssemblyOriginatorKeyFile>
<ReleaseVersion>4.0.2019.12</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Output\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Output\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="usr\share\applications\universal-editor.desktop">
<DeployService.TargetDirectoryId>Linux.DesktopApplications</DeployService.TargetDirectoryId>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="usr\" />
<Folder Include="usr\share\" />
<Folder Include="usr\share\applications\" />
<Folder Include="usr\share\mime\" />
<Folder Include="usr\share\mime\packages\" />
</ItemGroup>
<ItemGroup>
<None Include="usr\share\mime\packages\universaleditor-cri.xml" />
<None Include="usr\share\mime\packages\universaleditor-newworldcomputing.xml" />
<None Include="usr\share\mime\packages\universaleditor-sega.xml" />
</ItemGroup>
<Target Name="Build">
<Copy SourceFiles="@(Content)" DestinationFiles="@(Content-&gt;'$(OutputPath)%(RelativeDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="Clean">
<Delete Files="@(Content-&gt;'$(OutputPath)%(RelativeDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="Rebuild" DependsOnTargets="Clean;Build">
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,28 @@
[Desktop Entry]
Version=1.0
Name=Universal Editor
GenericName=Modular Document Editor
Comment=Create, open, edit, and save just about any type of file
Exec=universal-editor %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=universal-editor
Categories=Graphics;
MimeType=text/plain;text/x-csharp;application/x-mds;application/x-mdp;application/x-cmbx;application/x-prjx;application/x-csproj;application/x-vbproj;application/x-sln;application/x-aspx;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-bmp;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-png;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;application/x-cri-cpk;application/x-cri-afs;application/x-cri-afs2;application/x-cri-utf;application/x-newworldcomputing-agg
StartupNotify=true
StartupWMClass=UniversalEditor.exe
Actions=new-document;new-project;open-document;open-project
[Desktop Action new-document]
Name=Create a New Document
Exec=universal-editor --command FileNewDocument
[Desktop Action new-project]
Name=Create a New Project
Exec=universal-editor --command FileNewProject
[Desktop Action open-document]
Name=Open an Existing Document
Exec=universal-editor --command FileOpenDocument
[Desktop Action open-project]
Name=Open an Existing Project
Exec=universal-editor --command FileOpenProject

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-cri-cpk">
<comment>CRI Middleware FileMajik CPK archive</comment>
<glob pattern="*.cpk"/>
<icon name="application-x-cri-cpk" />
<generic-icon name="package-x-generic" />
</mime-type>
<mime-type type="application/x-cri-afs">
<comment>CRI Middleware FileMajik AFS archive</comment>
<glob pattern="*.afs"/>
<icon name="application-x-cri-cpk" />
<generic-icon name="package-x-generic" />
</mime-type>
<mime-type type="application/x-cri-afs2">
<comment>CRI Middleware FileMajik AWB/ACB archive</comment>
<glob pattern="*.awb"/>
<icon name="application-x-cri-cpk" />
<generic-icon name="package-x-generic" />
</mime-type>
<mime-type type="application/x-cri-utf">
<comment>CRI Middleware UTF database</comment>
<glob pattern="*.utf"/>
<icon name="application-x-cri-utf" />
<generic-icon name="x-office-document" />
</mime-type>
</mime-info>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-newworldcomputing-agg">
<comment>New World Computing AGG archive</comment>
<glob pattern="*.agg"/>
<icon name="application-x-newworldcomputing-agg" />
<generic-icon name="package-x-generic" />
</mime-type>
</mime-info>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-sega-farc">
<comment>SEGA FARC archive</comment>
<glob pattern="*.farc"/>
<icon name="application-x-sega-farc" />
<generic-icon name="package-x-generic" />
</mime-type>
</mime-info>

View File

@ -157,6 +157,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Mul
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MBS.Framework.Rendering.Engines.OpenGL", "..\..\MBS.Framework.Rendering\Engines\OpenGL\MBS.Framework.Rendering.Engines.OpenGL\MBS.Framework.Rendering.Engines.OpenGL.csproj", "{42DDB1E3-20A2-47F8-9AED-ABAAFA6F3C4D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Content.Linux", "Content\UniversalEditor.Content.Linux\UniversalEditor.Content.Linux.csproj", "{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -453,6 +455,10 @@ Global
{42DDB1E3-20A2-47F8-9AED-ABAAFA6F3C4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42DDB1E3-20A2-47F8-9AED-ABAAFA6F3C4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42DDB1E3-20A2-47F8-9AED-ABAAFA6F3C4D}.Release|Any CPU.Build.0 = Release|Any CPU
{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90945326-FA6C-4A3E-90B9-5E29D7F85DF8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6F0AB1AF-E1A1-4D19-B19C-05BBB15C94B2} = {05D15661-E684-4EC9-8FBD-C014BA433CC5}
@ -526,6 +532,7 @@ Global
{2A0B4A53-8A3A-478D-80A7-B6FF20B38317} = {20F315E0-52AE-479F-AF43-3402482C1FC8}
{D18D3E15-6913-4A91-A412-5B1E9BF92487} = {7B535D74-5496-4802-B809-89ED88274A91}
{42DDB1E3-20A2-47F8-9AED-ABAAFA6F3C4D} = {20F315E0-52AE-479F-AF43-3402482C1FC8}
{90945326-FA6C-4A3E-90B9-5E29D7F85DF8} = {4BC75679-085E-45DA-B00A-D9BA89D8748A}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0