Browse Source

Merge pull request #20528 from Calinou/improve-appstream-add-mime-type

Tweak AppStream metadata and add MIME type integration
Max Hilbrunner 7 years ago
parent
commit
6601502acd

+ 1 - 5
misc/dist/linux/org.godotengine.Godot.appdata.xml

@@ -1,12 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2017-2018 Rémi Verschelde <[email protected]> -->
 <!-- Copyright 2017-2018 Rémi Verschelde <[email protected]> -->
 <component type="desktop">
 <component type="desktop">
-  <id>org.godotengine.Godot.desktop</id>
+  <id>org.godotengine.Godot</id>
   <metadata_license>CC0-1.0</metadata_license>
   <metadata_license>CC0-1.0</metadata_license>
   <project_license>MIT</project_license>
   <project_license>MIT</project_license>
   <name>Godot Engine</name>
   <name>Godot Engine</name>
   <summary>Multi-platform 2D and 3D game engine with a feature-rich editor</summary>
   <summary>Multi-platform 2D and 3D game engine with a feature-rich editor</summary>
-  <icon type="remote">https://raw.githubusercontent.com/godotengine/godot/master/icon.png</icon>
   ​<launchable type="desktop-id">org.godotengine.Godot.desktop</launchable>
   ​<launchable type="desktop-id">org.godotengine.Godot.desktop</launchable>
   <description>
   <description>
     <p>
     <p>
@@ -26,9 +25,6 @@
       <image>https://download.tuxfamily.org/godotengine/media/screenshots/editor_3d_fracteed-720p.jpg</image>
       <image>https://download.tuxfamily.org/godotengine/media/screenshots/editor_3d_fracteed-720p.jpg</image>
     </screenshot>
     </screenshot>
   </screenshots>
   </screenshots>
-  <categories>
-    <category>Development</category>
-  </categories>
   <url type="homepage">https://godotengine.org</url>
   <url type="homepage">https://godotengine.org</url>
   <url type="bugtracker">https://github.com/godotengine/godot/issues</url>
   <url type="bugtracker">https://github.com/godotengine/godot/issues</url>
   <url type="faq">http://docs.godotengine.org/en/latest/about/faq.html</url>
   <url type="faq">http://docs.godotengine.org/en/latest/about/faq.html</url>

+ 2 - 1
misc/dist/linux/org.godotengine.Godot.desktop

@@ -2,8 +2,9 @@
 Name=Godot Engine
 Name=Godot Engine
 GenericName=Libre game engine
 GenericName=Libre game engine
 Comment=Multi-platform 2D and 3D game engine with a feature-rich editor
 Comment=Multi-platform 2D and 3D game engine with a feature-rich editor
-Exec=godot -p
+Exec=godot %f
 Icon=godot
 Icon=godot
 Terminal=false
 Terminal=false
 Type=Application
 Type=Application
+MimeType=application/x-godot-project;
 Categories=Development;IDE;
 Categories=Development;IDE;

+ 8 - 0
misc/dist/linux/org.godotengine.Godot.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+ <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+   <mime-type type="application/x-godot-project">
+   <comment>Godot Engine project</comment>
+   <icon name="godot" />
+   <glob pattern="*.godot" weight="100" />
+  </mime-type>
+</mime-info>