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"
|
|
|
|
|
2018-10-14 21:26:48 +01:00
|
|
|
export QML_SOURCES_PATHS=src/qml
|
2018-10-17 08:25:03 +01:00
|
|
|
export V=0 VERBOSE=0
|
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"
|
2018-10-17 08:04:21 +01:00
|
|
|
wget -nc "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
|
2018-10-18 09:30:32 +01:00
|
|
|
wget -nc "https://raw.githubusercontent.com/TheAssassin/linuxdeploy-plugin-conda/master/linuxdeploy-plugin-conda.sh"
|
2018-10-14 20:49:13 +01:00
|
|
|
chmod +x linux*
|
2018-10-16 09:05:04 +01:00
|
|
|
mkdir -p appdir/usr/lib
|
2018-10-21 17:08:59 +01:00
|
|
|
|
|
|
|
if [ "$ARCH" == "" ]; then
|
|
|
|
ARCH="x86_64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -f /usr/lib/*/libjack.so.0 appdir/usr/lib
|
2018-10-21 17:38:13 +01:00
|
|
|
export UPD_INFO="gh-releases-zsync|NamedKitten|KittehPlayer|continuous|KittehPlayer-$ARCH.AppImage.zsync"
|
2018-10-21 17:08:59 +01:00
|
|
|
|
2018-10-14 20:49:13 +01:00
|
|
|
#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
|
2018-10-18 09:30:32 +01:00
|
|
|
#export PIP_REQUIREMENTS=youtube-dl
|
|
|
|
export CONDA_PACKAGES=youtube-dl
|
2018-10-18 07:48:55 +01:00
|
|
|
#ln -s ../conda/bin/youtube-dl appdir/usr/bin/youtube-dl
|
2018-10-18 09:58:14 +01:00
|
|
|
#sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O appdir/usr/bin/youtube-dl
|
2018-10-21 17:26:12 +01:00
|
|
|
./linuxdeploy-x86_64.AppImage --appdir appdir --plugin conda --plugin qt --output appimage -v 3
|