bundle gstreamer in a better way
This commit is contained in:
parent
08ba783551
commit
514830f697
@ -73,6 +73,17 @@ if [ $is_linux = true ]; then
|
|||||||
|
|
||||||
chmod a+x linuxdeploy*.AppImage linuxdeploy*.sh
|
chmod a+x linuxdeploy*.AppImage linuxdeploy*.sh
|
||||||
|
|
||||||
|
# Copy Gstreamer libs.
|
||||||
|
install -v -Dm755 "/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner" "AppDir/usr/lib/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
|
||||||
|
gst_executables="--executable=./AppDir/usr/lib/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
|
||||||
|
gst_libs=""
|
||||||
|
|
||||||
|
for plugin in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgst*.so; do
|
||||||
|
basen=$(basename "$plugin")
|
||||||
|
install -v -Dm755 "$plugin" "./AppDir/usr/lib/gstreamer-1.0/$basen"
|
||||||
|
gst_libs="${gst_libs} --library=./AppDir/usr/lib/gstreamer-1.0/$basen"
|
||||||
|
done
|
||||||
|
|
||||||
if [[ "$webengine" == "ON" ]]; then
|
if [[ "$webengine" == "ON" ]]; then
|
||||||
# Copy some NSS3 files to prevent WebEngine crashes.
|
# Copy some NSS3 files to prevent WebEngine crashes.
|
||||||
cp /usr/lib/x86_64-linux-gnu/nss/* ./AppDir/usr/lib/ -v
|
cp /usr/lib/x86_64-linux-gnu/nss/* ./AppDir/usr/lib/ -v
|
||||||
@ -85,11 +96,8 @@ if [ $is_linux = true ]; then
|
|||||||
# Adjust library search paths.
|
# Adjust library search paths.
|
||||||
export LD_LIBRARY_PATH="$QTPATH/$QTVERSION/$QTOS/lib:$(pwd)/AppDir/usr/lib"
|
export LD_LIBRARY_PATH="$QTPATH/$QTVERSION/$QTOS/lib:$(pwd)/AppDir/usr/lib"
|
||||||
|
|
||||||
# GStreamer stuff.
|
|
||||||
export GSTREAMER_INCLUDE_BAD_PLUGINS="1"
|
|
||||||
|
|
||||||
# Create AppImage.
|
# Create AppImage.
|
||||||
./linuxdeploy-x86_64.AppImage --output "appimage" --plugin "qt" --plugin "gstreamer" --appdir "AppDir"
|
./linuxdeploy-x86_64.AppImage --output "appimage" --plugin "qt" --plugin "gstreamer" --appdir "AppDir" $gst_executables $gst_libs
|
||||||
|
|
||||||
# Rename AppImaage.
|
# Rename AppImaage.
|
||||||
set -- R*.AppImage
|
set -- R*.AppImage
|
||||||
|
@ -129,7 +129,6 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
|
|||||||
connect(m_nodejs, &NodeJs::packageError, this, &Application::onNodeJsPackageUpdateError);
|
connect(m_nodejs, &NodeJs::packageError, this, &Application::onNodeJsPackageUpdateError);
|
||||||
connect(m_nodejs, &NodeJs::packageInstalledUpdated, this, &Application::onNodeJsPackageInstalled);
|
connect(m_nodejs, &NodeJs::packageInstalledUpdated, this, &Application::onNodeJsPackageInstalled);
|
||||||
|
|
||||||
/*
|
|
||||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
|
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
|
||||||
QString app_dir = QString::fromLocal8Bit(qgetenv("APPDIR"));
|
QString app_dir = QString::fromLocal8Bit(qgetenv("APPDIR"));
|
||||||
|
|
||||||
@ -146,7 +145,6 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
|
|
||||||
#if defined(USE_WEBENGINE)
|
#if defined(USE_WEBENGINE)
|
||||||
m_webFactory->urlIinterceptor()->load();
|
m_webFactory->urlIinterceptor()->load();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user