Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gstreamer audio plugins to appimage #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
21 changes: 20 additions & 1 deletion generic-linux/make-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,30 @@ done
cp "$(ldd build/lib/rex_pcre.so | cut -d ' ' -f 3 | grep 'libpcre')" build/lib
cp "$(ldd build/lib/zip.so | cut -d ' ' -f 3 | grep 'libz.so')" build/lib

# find all "audio" related gstreamer plugins that are installed
# and copy them over

gstreamerCommandLine=()

set +e # we need exit codes here, so we turn it off temporarily
for file in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/*; do
gst-inspect-1.0 --print-plugin-auto-install-info "$file" | grep -q "audio"
stat=$?
if [ "$stat" = "0" ]; then
gstreamerCommandLine=("${gstreamerCommandLine[@]}" "-executable=build/lib/$(basename "$file")")
cp "$file" build/lib/
fi
done
set -e

cp /usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner build/lib/
gstreamerCommandLine=("${gstreamerCommandLine[@]}" "-executable=build/lib/gst-plugin-scanner")

# extract linuxdeployqt since some environments (like travis) don't allow FUSE
./linuxdeployqt.AppImage --appimage-extract

echo "Generating AppImage"
./squashfs-root/AppRun ./build/mudlet -appimage -executable=build/lib/rex_pcre.so -executable=build/lib/zip.so -executable=build/lib/luasql/sqlite3.so
./squashfs-root/AppRun ./build/mudlet -appimage -executable=build/lib/rex_pcre.so -executable=build/lib/zip.so -executable=build/lib/luasql/sqlite3.so "${gstreamerCommandLine[@]}"

# clean up extracted appimage
rm -rf squashfs-root/
Expand Down