From 18c5e19ac92c85202c4934364c3f713187a8ce92 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 21 Jul 2018 23:57:39 -0700 Subject: [PATCH] Add files for Flatpak deployment --- app/app.pro | 31 +++++++--- ...com.moonlight_stream.Moonlight.appdata.xml | 61 +++++++++++++++++++ .../com.moonlight_stream.Moonlight.desktop | 9 +++ 3 files changed, 94 insertions(+), 7 deletions(-) create mode 100644 app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml create mode 100644 app/deploy/linux/com.moonlight_stream.Moonlight.desktop diff --git a/app/app.pro b/app/app.pro index f09448ff..acef7907 100644 --- a/app/app.pro +++ b/app/app.pro @@ -38,7 +38,7 @@ unix:!macx { LIBS += -ldl packagesExist(libavcodec) { - PKGCONFIG += libavcodec libavdevice libavformat libavutil + PKGCONFIG += libavcodec libavutil CONFIG += ffmpeg packagesExist(libva) { @@ -47,11 +47,11 @@ unix:!macx { } } win32 { - LIBS += -llibssl -llibcrypto -lSDL2 -lavcodec -lavdevice -lavformat -lavutil + LIBS += -llibssl -llibcrypto -lSDL2 -lavcodec -lavutil CONFIG += ffmpeg } macx { - LIBS += -lssl -lcrypto -lSDL2 -lavcodec.58 -lavdevice.58 -lavformat.58 -lavutil.56 + LIBS += -lssl -lcrypto -lSDL2 -lavcodec.58 -lavutil.56 LIBS += -lobjc -framework VideoToolbox -framework AVFoundation -framework CoreVideo -framework CoreGraphics -framework CoreMedia -framework AppKit CONFIG += ffmpeg } @@ -155,10 +155,27 @@ else:unix: LIBS += -L$$OUT_PWD/../qmdnsengine/ -lqmdnsengine INCLUDEPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine DEPENDPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine -# Default rules for deployment. -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin -!isEmpty(target.path): INSTALLS += target +unix:!macx: { + isEmpty(PREFIX) { + PREFIX = /usr/local + } + isEmpty(BINDIR) { + BINDIR = bin + } + + target.path = $$PREFIX/$$BINDIR/ + + desktop.files = deploy/linux/com.moonlight_stream.Moonlight.desktop + desktop.path = $$PREFIX/share/applications/ + + icons.files = res/moonlight.svg + icons.path = $$PREFIX/share/icons/hicolor/scalable/apps/ + + appdata.files = deploy/linux/com.moonlight_stream.Moonlight.appdata.xml + appdata.path = $$PREFIX/share/metainfo/ + + INSTALLS += target desktop icons appdata +} macx { QMAKE_INFO_PLIST = $$PWD/Info.plist diff --git a/app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml b/app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml new file mode 100644 index 00000000..20f78740 --- /dev/null +++ b/app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml @@ -0,0 +1,61 @@ + + + com.moonlight_stream.Moonlight.desktop + CC0-1.0 + GPL-3.0+ + Moonlight + Stream games from your NVIDIA GameStream-enabled PC + + +

Moonlight can stream games or other applications from a PC with an NVIDIA GeForce GTX 600-series or higher GPU and GeForce Experience installed.

+

GameStream utilizes the NVENC hardware encoder present on NVIDIA GPUs for low-latency streaming at up 4K 60 FPS. Moonlight can utilize VAAPI hardware acceleration for high-performance H.264 and HEVC video decoding with low CPU usage.

+
+ + https://moonlight-stream.com + https://github.com/moonlight-stream/moonlight-qt/issues + https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide + + + Game + Qt + + + Moonlight Game Streaming Team + cameron@moonlight-stream.com + + com.moonlight_stream.Moonlight.desktop + + + moonlight-qt + + + + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + moderate + none + none + none + none + none + +
\ No newline at end of file diff --git a/app/deploy/linux/com.moonlight_stream.Moonlight.desktop b/app/deploy/linux/com.moonlight_stream.Moonlight.desktop new file mode 100644 index 00000000..5cd8d19b --- /dev/null +++ b/app/deploy/linux/com.moonlight_stream.Moonlight.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Moonlight +Comment=Stream games from your NVIDIA GameStream-enabled PC +Exec=moonlight-qt +Icon=moonlight-qt +Terminal=false +Type=Application +Categories=Qt;Game; +Keywords=nvidia;gamestream;stream;