mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-05 01:09:14 +00:00
Add files for Flatpak deployment
This commit is contained in:
parent
06635d9f9a
commit
18c5e19ac9
3 changed files with 94 additions and 7 deletions
31
app/app.pro
31
app/app.pro
|
@ -38,7 +38,7 @@ unix:!macx {
|
||||||
LIBS += -ldl
|
LIBS += -ldl
|
||||||
|
|
||||||
packagesExist(libavcodec) {
|
packagesExist(libavcodec) {
|
||||||
PKGCONFIG += libavcodec libavdevice libavformat libavutil
|
PKGCONFIG += libavcodec libavutil
|
||||||
CONFIG += ffmpeg
|
CONFIG += ffmpeg
|
||||||
|
|
||||||
packagesExist(libva) {
|
packagesExist(libva) {
|
||||||
|
@ -47,11 +47,11 @@ unix:!macx {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
win32 {
|
win32 {
|
||||||
LIBS += -llibssl -llibcrypto -lSDL2 -lavcodec -lavdevice -lavformat -lavutil
|
LIBS += -llibssl -llibcrypto -lSDL2 -lavcodec -lavutil
|
||||||
CONFIG += ffmpeg
|
CONFIG += ffmpeg
|
||||||
}
|
}
|
||||||
macx {
|
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
|
LIBS += -lobjc -framework VideoToolbox -framework AVFoundation -framework CoreVideo -framework CoreGraphics -framework CoreMedia -framework AppKit
|
||||||
CONFIG += ffmpeg
|
CONFIG += ffmpeg
|
||||||
}
|
}
|
||||||
|
@ -155,10 +155,27 @@ else:unix: LIBS += -L$$OUT_PWD/../qmdnsengine/ -lqmdnsengine
|
||||||
INCLUDEPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
INCLUDEPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
||||||
DEPENDPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
DEPENDPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
||||||
|
|
||||||
# Default rules for deployment.
|
unix:!macx: {
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
isEmpty(PREFIX) {
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
PREFIX = /usr/local
|
||||||
!isEmpty(target.path): INSTALLS += target
|
}
|
||||||
|
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 {
|
macx {
|
||||||
QMAKE_INFO_PLIST = $$PWD/Info.plist
|
QMAKE_INFO_PLIST = $$PWD/Info.plist
|
||||||
|
|
61
app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml
Normal file
61
app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<component type="desktop">
|
||||||
|
<id>com.moonlight_stream.Moonlight.desktop</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<project_license>GPL-3.0+</project_license>
|
||||||
|
<name>Moonlight</name>
|
||||||
|
<summary>Stream games from your NVIDIA GameStream-enabled PC</summary>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
<p>Moonlight can stream games or other applications from a PC with an NVIDIA GeForce GTX 600-series or higher GPU and GeForce Experience installed.</p>
|
||||||
|
<p>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.</p>
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<url type="homepage">https://moonlight-stream.com</url>
|
||||||
|
<url type="bugtracker">https://github.com/moonlight-stream/moonlight-qt/issues</url>
|
||||||
|
<url type="help">https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide</url>
|
||||||
|
|
||||||
|
<categories>
|
||||||
|
<category>Game</category>
|
||||||
|
<category>Qt</category>
|
||||||
|
</categories>
|
||||||
|
|
||||||
|
<developer_name>Moonlight Game Streaming Team</developer_name>
|
||||||
|
<update_contact>cameron@moonlight-stream.com</update_contact>
|
||||||
|
|
||||||
|
<launchable type="desktop-id">com.moonlight_stream.Moonlight.desktop</launchable>
|
||||||
|
|
||||||
|
<provides>
|
||||||
|
<binary>moonlight-qt</binary>
|
||||||
|
</provides>
|
||||||
|
|
||||||
|
<content_rating type="oars-1.1">
|
||||||
|
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||||
|
<content_attribute id="violence-fantasy">none</content_attribute>
|
||||||
|
<content_attribute id="violence-realistic">none</content_attribute>
|
||||||
|
<content_attribute id="violence-bloodshed">none</content_attribute>
|
||||||
|
<content_attribute id="violence-sexual">none</content_attribute>
|
||||||
|
<content_attribute id="violence-desecration">none</content_attribute>
|
||||||
|
<content_attribute id="violence-slavery">none</content_attribute>
|
||||||
|
<content_attribute id="violence-worship">none</content_attribute>
|
||||||
|
<content_attribute id="drugs-alcohol">none</content_attribute>
|
||||||
|
<content_attribute id="drugs-narcotics">none</content_attribute>
|
||||||
|
<content_attribute id="drugs-tobacco">none</content_attribute>
|
||||||
|
<content_attribute id="sex-nudity">none</content_attribute>
|
||||||
|
<content_attribute id="sex-themes">none</content_attribute>
|
||||||
|
<content_attribute id="sex-homosexuality">none</content_attribute>
|
||||||
|
<content_attribute id="sex-prostitution">none</content_attribute>
|
||||||
|
<content_attribute id="sex-adultery">none</content_attribute>
|
||||||
|
<content_attribute id="sex-appearance">none</content_attribute>
|
||||||
|
<content_attribute id="language-profanity">none</content_attribute>
|
||||||
|
<content_attribute id="language-humor">none</content_attribute>
|
||||||
|
<content_attribute id="language-discrimination">none</content_attribute>
|
||||||
|
<content_attribute id="social-chat">none</content_attribute>
|
||||||
|
<content_attribute id="social-info">moderate</content_attribute>
|
||||||
|
<content_attribute id="social-audio">none</content_attribute>
|
||||||
|
<content_attribute id="social-location">none</content_attribute>
|
||||||
|
<content_attribute id="social-contacts">none</content_attribute>
|
||||||
|
<content_attribute id="money-purchasing">none</content_attribute>
|
||||||
|
<content_attribute id="money-gambling">none</content_attribute>
|
||||||
|
</content_rating>
|
||||||
|
</component>
|
9
app/deploy/linux/com.moonlight_stream.Moonlight.desktop
Normal file
9
app/deploy/linux/com.moonlight_stream.Moonlight.desktop
Normal file
|
@ -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;
|
Loading…
Reference in a new issue