From c6f206f9767c33c2400a96de0d8d0a0fea914024 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Thu, 23 May 2019 00:17:02 +0200 Subject: [PATCH] AppImage: add Appstream metadata file --- travis/appimage-script.sh | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/travis/appimage-script.sh b/travis/appimage-script.sh index fa4dafa..252b8de 100755 --- a/travis/appimage-script.sh +++ b/travis/appimage-script.sh @@ -1,5 +1,8 @@ #! /bin/bash +# Copyright (C) 2019 Syncplay +# Licensed under the MIT license - http://opensource.org/licenses/MIT + set -x set -e @@ -45,6 +48,36 @@ exec "$APPDIR"/usr/bin/python "$APPDIR"/usr/bin/syncplay "$@" EAT chmod +x AppRun.sh +# add AppStream metadata +mkdir -p AppDir/usr/share/metainfo/ +cat > pl.syncplay.syncplay.appdata.xml <<\EAT + + + pl.syncplay.syncplay + MIT + Apache-2.0 + Syncplay + Client/server to synchronize media playback on mpv/VLC/MPC-HC/MPC-BE on many computers + +

Syncplay synchronises the position and play state of multiple media players so that the viewers can watch the same thing at the same time. This means that when one person pauses/unpauses playback or seeks (jumps position) within their media player then this will be replicated across all media players connected to the same server and in the same 'room' (viewing session). When a new person joins they will also be synchronised. Syncplay also includes text-based chat so you can discuss a video as you watch it (or you could use third-party Voice over IP software to talk over a video).

+
+ pl.syncplay.syncplay.desktop + https://syncplay.pl/ + + + https://syncplay.pl/wp-content/themes/big-city-child/SyncplayExplained.png + + + + pl.syncplay.syncplay.desktop + +
+EAT +mv pl.syncplay.syncplay.appdata.xml AppDir/usr/share/metainfo/ + +# move and rename .desktop file +cp "$REPO_ROOT"/syncplay/resources/syncplay.desktop ./pl.syncplay.syncplay.desktop + #export CONDA_PACKAGES="Pillow" export PIP_REQUIREMENTS="." export PIP_WORKDIR="$REPO_ROOT" @@ -53,7 +86,7 @@ export OUTPUT=Syncplay-$VERSION-x86_64.AppImage ./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin conda \ -e $(which readelf) \ - -i "$REPO_ROOT"/syncplay/resources/syncplay.png -d "$REPO_ROOT"/syncplay/resources/syncplay.desktop \ + -i "$REPO_ROOT"/syncplay/resources/syncplay.png -d pl.syncplay.syncplay.desktop \ --output appimage --custom-apprun AppRun.sh mv Syncplay*.AppImage "$OLD_CWD" \ No newline at end of file