[printrun] Add AppData

Miro Hrončok churchyard at fedoraproject.org
Fri Dec 27 20:07:53 UTC 2013


commit 7201013fff9a2e7fd683a5f9aeb86fe9d8264baa
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Fri Dec 27 21:05:03 2013 +0100

    Add AppData

 plater.appdata.xml      |   14 ++++++++++++++
 plater.desktop          |    9 +++++----
 printrun.spec           |   28 +++++++++++++++++++++++++++-
 pronsole.appdata.xml    |   15 +++++++++++++++
 pronsole.desktop        |    9 +++++----
 pronterface.appdata.xml |   16 ++++++++++++++++
 pronterface.desktop     |   11 +++++++----
 7 files changed, 89 insertions(+), 13 deletions(-)
---
diff --git a/plater.appdata.xml b/plater.appdata.xml
new file mode 100644
index 0000000..8cb300b
--- /dev/null
+++ b/plater.appdata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">plater.desktop</id>
+ <licence>CC0</licence>
+ <summary>3D printer plating tool</summary>
+ <description>
+  <p>Plater is a simple graphical tool for preparing plates for desktop 3D printers, such as RepRap.</p>
+  <p>It lets you load 3D models and manipulate them on XY plane. It is also possible to let Plater automatically arrange the files to fit. You can than export the prepared plate for later use or load it directly to Pronterface (if installed).</p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="804" height="606">https://raw.github.com/kliment/Printrun/master/screenshots/plater.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/kliment/Printrun</url>
+</application>
diff --git a/plater.desktop b/plater.desktop
index 146a708..b57af93 100644
--- a/plater.desktop
+++ b/plater.desktop
@@ -1,9 +1,10 @@
-
 [Desktop Entry]
+Type=Application
 Name=Plater
 GenericName=Plate building tool
-Exec=plater
+Comment=Prepares plates for 3D printing
 Icon=/usr/share/pixmaps/plater.ico
+Exec=plater
+StartupNotify=true
 Terminal=false
-Type=Application
-Categories=Graphics;
+Categories=GNOME;GTK;Utility;Graphics;3DGraphics;
diff --git a/printrun.spec b/printrun.spec
index 3901d0a..9da40f3 100644
--- a/printrun.spec
+++ b/printrun.spec
@@ -1,7 +1,7 @@
 Name:           printrun
 Version:        2013.10.19
 %global tag     %{name}-20131019
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        RepRap printer interface and tools
 License:        GPLv3+
 Group:          Applications/Engineering
@@ -17,6 +17,13 @@ Source1:        pronsole.desktop
 Source2:        pronterface.desktop
 Source3:        plater.desktop
 
+# AppData files
+Source4:        pronsole.appdata.xml
+Source5:        pronterface.appdata.xml
+Source6:        plater.appdata.xml
+
+# Both desktop files and AppData files are already in upstream git as well
+
 # https://github.com/kliment/Printrun/issues/438
 Patch0:         %{name}-issue438a.patch
 Patch1:         %{name}-issue438b.patch
@@ -147,6 +154,10 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
 
+# appdata files
+mkdir -p %{buildroot}%{_datadir}/appdata
+cp %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_datadir}/appdata/
+
 # locales
 mkdir -p %{buildroot}%{_datadir}/locale
 cp -ar %{buildroot}%{_datadir}/pronterface/locale/* %{buildroot}%{_datadir}/locale
@@ -174,6 +185,10 @@ rm -f %{buildroot}%{_bindir}/prontserve*
 %{_bindir}/pronsole*
 %{_datadir}/pixmaps/pronsole.ico
 %{_datadir}/applications/pronsole.desktop
+%if 0%{?fedora} < 21
+%dir %{_datadir}/appdata
+%endif
+%{_datadir}/appdata/pronsole.appdata.xml
 %doc README* COPYING
 
 %if 0%{?prontserve}
@@ -187,14 +202,25 @@ rm -f %{buildroot}%{_bindir}/prontserve*
 %{_datadir}/pronterface
 %{_datadir}/pixmaps/P-face.ico
 %{_datadir}/applications/pronterface.desktop
+%if 0%{?fedora} < 21
+%dir %{_datadir}/appdata
+%endif
+%{_datadir}/appdata/pronterface.appdata.xml
 %doc README* COPYING
 
 %files -n plater -f plater.lang
 %{_bindir}/plater*
 %{_datadir}/applications/plater.desktop
+%if 0%{?fedora} < 21
+%dir %{_datadir}/appdata
+%endif
+%{_datadir}/appdata/plater.appdata.xml
 %doc README* COPYING
 
 %changelog
+* Fri Dec 27 2013 Miro Hrončok <mhroncok at redhat.com> - 2013.10.19-7
+- Add AppData
+
 * Fri Nov 15 2013 Miro Hrončok <mhroncok at redhat.com> - 2013.10.19-6
 - Use system's simarrange in plater
 
diff --git a/pronsole.appdata.xml b/pronsole.appdata.xml
new file mode 100644
index 0000000..0052f61
--- /dev/null
+++ b/pronsole.appdata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">pronsole.desktop</id>
+ <licence>CC0</licence>
+ <summary>3D printer host software for console</summary>
+ <description>
+  <p>Pronsole is a command line user interface for desktop 3D printers, such as RepRap. It lets you to load Gcode, connect to printer and send the Gcode to it. Best option for controling 3D printer from headless or not enough powerful machines.</p>
+  <p>It allows you not only to send Gcode form file, but also control the printer manually or send Gcode commands directly to the printer.</p>
+  <p>Is integrates slicing tool, so if you load an STL 3D model to it as well as Gcode.</p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="659" height="388">https://raw.github.com/kliment/Printrun/master/screenshots/pronsole.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/kliment/Printrun</url>
+</application>
diff --git a/pronsole.desktop b/pronsole.desktop
index 7c82942..8c48ef8 100644
--- a/pronsole.desktop
+++ b/pronsole.desktop
@@ -1,9 +1,10 @@
-
 [Desktop Entry]
+Type=Application
 Name=Pronsole
 GenericName=Printer console
-Exec=pronsole
+Comment=Controls your 3D printer form console
 Icon=/usr/share/pixmaps/pronsole.ico
+Exec=pronsole
+StartupNotify=true
 Terminal=true
-Type=Application
-Categories=Graphics;
+Categories=Utility;Graphics;3DGraphics;ConsoleOnly;
diff --git a/pronterface.appdata.xml b/pronterface.appdata.xml
new file mode 100644
index 0000000..59a25f5
--- /dev/null
+++ b/pronterface.appdata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">pronterface.desktop</id>
+ <licence>CC0</licence>
+ <summary>3D printer host software</summary>
+ <description>
+  <p>Pronterface is a graphical user interface for desktop 3D printers, such as RepRap. It lets you view Gcode, connect to printer and send the Gcode to it. It's feature rich yet minimalist application.</p>
+  <p>It allows you not only to send Gcode form file, but also control the printer manually or send Gcode commands directly trough input field.</p>
+  <p>Is integrates slicing tool, so if you load an STL 3D model to it, it will slice and load it automatically.</p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="1061" height="596">https://raw.github.com/kliment/Printrun/master/screenshots/pronterface.png</screenshot>
+  <screenshot width="566" height="626">https://raw.github.com/kliment/Printrun/master/screenshots/pronterface2.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/kliment/Printrun</url>
+</application>
diff --git a/pronterface.desktop b/pronterface.desktop
index 4fe719f..46b062f 100644
--- a/pronterface.desktop
+++ b/pronterface.desktop
@@ -1,9 +1,12 @@
-
 [Desktop Entry]
+Type=Application
 Name=Pronterface
 GenericName=Printer Interface
-Exec=pronterface
+Comment=Controls your 3D printer
 Icon=/usr/share/pixmaps/P-face.ico
+Exec=pronterface %f
+Path=/usr/share/pronterface/
+StartupNotify=true
 Terminal=false
-Type=Application
-Categories=Graphics;
+Categories=GNOME;GTK;Utility;Graphics;3DGraphics;
+MimeType=text/plain;application/octet-stream;application/sla;


More information about the scm-commits mailing list