Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions linuxdeploy-plugin-gstreamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ show_usage() {
echo " LINUXDEPLOY=\".../linuxdeploy\" path to linuxdeploy (e.g., AppImage); set automatically when plugin is run directly by linuxdeploy"
echo
echo "Optional variables:"
echo " GSTREAMER_ALLOWED_PLUGINS=\"libgstx265.so,libgstx264.so\" (comma-separated list of plugins to deploy. Deploy all plugins, if empty; default: empty)"
echo " GSTREAMER_INCLUDE_BAD_PLUGINS=\"1\" (default: disabled; set to empty string or unset to disable)"
echo " GSTREAMER_PLUGINS_DIR=\"...\" (directory containing GStreamer plugins; default: guessed based on main distro architecture)"
echo " GSTREAMER_HELPERS_DIR=\"...\" (directory containing GStreamer helper tools like gst-plugin-scanner; default: guessed based on main distro architecture)"
Expand Down Expand Up @@ -95,11 +96,13 @@ mkdir -p "$plugins_target_dir"

echo "Copying plugins into $plugins_target_dir"
for i in "$plugins_dir"/*; do
[ -d "$i" ] && continue
[ ! -f "$i" ] && echo "File does not exist: $i" && continue
if [[ -z $GSTREAMER_ALLOWED_PLUGINS ]] || [[ ",$GSTREAMER_ALLOWED_PLUGINS," = *",$(basename $i),"* ]]; then
[ -d "$i" ] && continue
[ ! -f "$i" ] && echo "File does not exist: $i" && continue

echo "Copying plugin: $i"
cp "$i" "$plugins_target_dir"
echo "Copying plugin: $i"
cp "$i" "$plugins_target_dir"
fi
done

"$LINUXDEPLOY" --appdir "$APPDIR"
Expand Down