Skip to content

Commit 5d03da9

Browse files
committed
Require $LINUXDEPLOY to be set
1 parent 73f707b commit 5d03da9

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

linuxdeploy-plugin-gstreamer.sh

+15-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ show_usage() {
1414
echo
1515
echo "Bundles GStreamer plugins into an AppDir"
1616
echo
17-
echo "Variables:"
18-
echo " GSTREAMER_INCLUDE_BAD_PLUGINS=\"1\" (optional; default: disabled; set to empty string or unset to disable)"
19-
echo " GSTREAMER_PLUGINS_DIR=\"...\" (optional; directory containing GStreamer plugins; default: guessed based on main distro architecture)"
20-
echo " GSTREAMER_HELPERS_DIR=\"...\" (optional; directory containing GStreamer helper tools like gst-plugin-scanner; default: guessed based on main distro architecture)"
21-
echo " GSTREAMER_VERSION=\"1.0\" (optional; default: 1.0)"
17+
echo "Required variables:"
18+
echo " LINUXDEPLOY=\".../linuxdeploy\" path to linuxdeploy (e.g., AppImage); set automatically when plugin is run directly by linuxdeploy"
19+
echo
20+
echo "Optional variables:"
21+
echo " GSTREAMER_INCLUDE_BAD_PLUGINS=\"1\" (default: disabled; set to empty string or unset to disable)"
22+
echo " GSTREAMER_PLUGINS_DIR=\"...\" (directory containing GStreamer plugins; default: guessed based on main distro architecture)"
23+
echo " GSTREAMER_HELPERS_DIR=\"...\" (directory containing GStreamer helper tools like gst-plugin-scanner; default: guessed based on main distro architecture)"
24+
echo " GSTREAMER_VERSION=\"1.0\" (default: 1.0)"
2225
}
2326

2427
while [ "$1" != "" ]; do
@@ -57,6 +60,13 @@ if ! which patchelf &>/dev/null && ! type patchelf &>/dev/null; then
5760
exit 2
5861
fi
5962

63+
if [[ "$LINUXDEPLOY" == "" ]]; then
64+
echo "Error: \$LINUXDEPLOY not set"
65+
echo
66+
show_usage
67+
exit 3
68+
fi
69+
6070
mkdir -p "$APPDIR"
6171

6272
export GSTREAMER_VERSION=${GSTREAMER_VERSION:-1.0}

0 commit comments

Comments
 (0)