1
0
Fork 0
VideoPlayer/scripts/makeappimage.sh
2018-10-23 11:37:51 +01:00

30 lines
1.2 KiB
Bash
Executable file

#!/bin/bash
set -ex
export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH"
export QML_SOURCES_PATHS=src/qml
export V=0 VERBOSE=0
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"
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"
wget -nc "https://raw.githubusercontent.com/TheAssassin/linuxdeploy-plugin-conda/master/linuxdeploy-plugin-conda.sh"
chmod +x linux*
mkdir -p appdir/usr/lib
if [ "$ARCH" == "" ]; then
ARCH="x86_64"
fi
wget "https://github.com/AppImage/AppImageUpdate/releases/download/continuous/appimageupdatetool-382-b61bee3-x86_64.AppImage" -O appdir/usr/bin/appimageupdatetool
cp -f /usr/lib/*/libjack.so.0 appdir/usr/lib
export UPD_INFO="gh-releases-zsync|NamedKitten|KittehPlayer|continuous|KittehPlayer-$ARCH.AppImage.zsync"
export CONDA_PACKAGES=youtube-dl
./linuxdeploy-x86_64.AppImage --appdir appdir --plugin conda --plugin qt --output appimage -v 3