-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathscript-drm.txt
22 lines (18 loc) · 1.05 KB
/
script-drm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mkdir -p appdir/usr/bin
cp ./linux-bin/drm-receiver appdir/usr/bin/drm-receiver
mkdir -p appdir/usr/share/applications
cp drm-receiver.desktop appdir/usr/share/applications
cp drm.png appdir/qt-dab.png
touch appdir/drm.png
mkdir -p ./appdir/usr/share/icons/hicolor/256x256/apps/
cp drm.png appdir/usr/share/icons/hicolor/256x256/apps/
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt*.AppImage
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/* -bundle-non-qt-libs -no-translations
./linuxdeployqt*.AppImage --appimage-extract
find appdir/usr/plugins/ -type f -exec squashfs-root/usr/bin/patchelf --set-rpath '$ORIGIN/../../lib' {} \;
chmod a+x appimage/* ; rm appdir/AppRun ; cp appimage/* appdir/
export PATH=squashfs-root/usr/bin/:$PATH
squashfs-root/usr/bin/appimagetool $(readlink -f ./appdir/)
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq