1
0
Fork 0
VideoPlayer/scripts/makeappimage.sh

25 lines
1.2 KiB
Bash
Raw Normal View History

2018-10-14 20:49:13 +01:00
#!/bin/bash
2018-10-14 21:50:14 +01:00
set -ex
2018-10-14 20:49:13 +01:00
export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH"
bash scripts/build-mpv.sh
2018-10-14 21:26:48 +01:00
export QML_SOURCES_PATHS=src/qml
2018-10-14 20:52:31 +01:00
2018-10-14 20:49:13 +01:00
qmake CONFIG+=release PREFIX=/usr
make -j$(nproc)
make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
#wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
2018-10-14 21:26:48 +01:00
wget -nc "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
wget -nc https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
2018-10-14 20:49:13 +01:00
chmod +x linux*
cp /usr/lib/libjack.so* appdir/usr/lib
2018-10-14 20:49:13 +01:00
export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
#mkdir -p appdir/usr/plugins/imageformats
#cp /opt/qt*/plugins/imageformats/libqsvg.so appdir/usr/plugins/imageformats/
#./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -bundle-non-qt-libs
#./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage
./linuxdeploy-x86_64.AppImage --appdir appdir --plugin qt --output appimage