mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Add mime info file
This commit is contained in:
@@ -5,8 +5,8 @@ Name=GDevelop
|
||||
GenericName=Game creator IDE
|
||||
Comment=HTML5 and native game development software
|
||||
Exec=sh -c "gdevelop %F"
|
||||
MimeType=application/x-gdevelop-project
|
||||
Icon=GDevelop
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;IDE;
|
||||
|
||||
|
@@ -9,7 +9,8 @@ URL: http://www.compilgames.net
|
||||
|
||||
Source0: gdevelop_%{version}.orig.tar.gz
|
||||
Source1: gdevelop.desktop
|
||||
Source2: gdevelop-rpmlintrc
|
||||
Source2: gdevelop.xml
|
||||
Source100: gdevelop-rpmlintrc
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
@@ -64,6 +65,9 @@ desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications/ %{_
|
||||
%suse_update_desktop_file -i gdevelop
|
||||
%endif
|
||||
|
||||
#Add MIME type
|
||||
cp %{S:2} "$RPM_BUILD_ROOT"/usr/share/mime/packages
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@@ -74,6 +78,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/bin/gdevelop
|
||||
/usr/share/applications/gdevelop.desktop
|
||||
/usr/share/pixmaps/GDevelop.png
|
||||
/usr/share/mime/packages/gdevelop.xml
|
||||
|
||||
%post
|
||||
update-desktop-database
|
||||
update-mime-database
|
||||
|
||||
%doc
|
||||
|
||||
|
8
Binaries/Packaging/opensuse-build-service/gdevelop.xml
Normal file
8
Binaries/Packaging/opensuse-build-service/gdevelop.xml
Normal file
@@ -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-gdevelop-project">
|
||||
<comment>GDevelop project</comment>
|
||||
<glob pattern="*.gdg"/>
|
||||
<sub-class-of type="application/xml"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
Reference in New Issue
Block a user