From eddc629bd637ec5d9260849d095b6951a437360d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 1 Feb 2017 17:48:03 +0800 Subject: Make packaging qmidiplayer less painful. Add mime info. Do not throw integers. Fix incorrect font paths in Arch Linux. --- qmidiplayer-desktop/qmidiplayer-desktop.pro | 4 +++- qmidiplayer-desktop/qmidiplayer.mime | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 qmidiplayer-desktop/qmidiplayer.mime (limited to 'qmidiplayer-desktop') diff --git a/qmidiplayer-desktop/qmidiplayer-desktop.pro b/qmidiplayer-desktop/qmidiplayer-desktop.pro index 5572479..4a04d6b 100644 --- a/qmidiplayer-desktop/qmidiplayer-desktop.pro +++ b/qmidiplayer-desktop/qmidiplayer-desktop.pro @@ -82,7 +82,7 @@ unix{ BINDIR = $$PREFIX/bin target.path = $$BINDIR DATADIR = $$PREFIX/share - INSTALLS += target desktop iconbmp iconsvg iconxpm doc docimg appdata menu + INSTALLS += target desktop iconbmp iconsvg iconxpm doc docimg appdata menu mimetype desktop.path = $$DATADIR/applications desktop.files += $${TARGET}.desktop iconbmp.path = $$DATADIR/icons/hicolor/64x64/apps @@ -99,6 +99,8 @@ unix{ appdata.files += $${TARGET}.appdata.xml menu.path = $${DATADIR}/menu menu.files += ./menu/$${TARGET} + mimetype.path = $$DATADIR/mime/packages + mimetype.files += $${TARGET}.mime QMAKE_CXXFLAGS += -Wall LIBS += -lfluidsynth -lrtmidi -ldl } diff --git a/qmidiplayer-desktop/qmidiplayer.mime b/qmidiplayer-desktop/qmidiplayer.mime new file mode 100644 index 0000000..becf239 --- /dev/null +++ b/qmidiplayer-desktop/qmidiplayer.mime @@ -0,0 +1,11 @@ + + + + MIDI audio + + + + + + + -- cgit v1.2.3