]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Add missing AppImage build files
authortobtoht <thotbot@protonmail.com>
Thu, 8 Jul 2021 22:04:54 +0000 (00:04 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 8 Jul 2021 22:04:54 +0000 (00:04 +0200)
contrib/AppImage/AppRun [new file with mode: 0644]
contrib/AppImage/gst-plugin-scanner.sh [new file with mode: 0644]

diff --git a/contrib/AppImage/AppRun b/contrib/AppImage/AppRun
new file mode 100644 (file)
index 0000000..24ea3ec
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+HERE="$(dirname "$(readlink -f "${0}")")"
+echo $HERE
+
+export GST_PLUGIN_SCANNER=$(readlink -f $(dirname "$0")/usr/lib/gst-plugin-scanner)
+export GST_PLUGIN_SYSTEM_PATH=$(readlink -f $(dirname "$0")/usr/lib)
+
+${APPDIR}/usr/bin/feather $*
diff --git a/contrib/AppImage/gst-plugin-scanner.sh b/contrib/AppImage/gst-plugin-scanner.sh
new file mode 100644 (file)
index 0000000..4fbc252
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Wrapper to launch gst-plugin-scanner inside the AppImage.
+
+HERE="$(dirname "$(readlink -f "${0}")")"
+export PATH="${HERE}:${PATH}"
+
+binary=$(find "$HERE" -name "gst-plugin-scanner-x86_64" | head -n 1)
+LD_LINUX=$(find "$HERE/../../../" -name 'ld-*.so.*' | head -n 1)
+if [ -e "$LD_LINUX" ] ; then
+  case $line in
+    "ld-linux"*) exec "${LD_LINUX}" --inhibit-cache "${binary}" "$@" ;;
+    *) exec "${LD_LINUX}" "${binary}" "$@" ;;
+  esac
+else
+  exec "${binary}" "$@"
+fi
\ No newline at end of file