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-30 12:34:13 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
|
2018-10-14 20:49:13 +01:00
|
|
|
make -j$(nproc)
|
2018-10-30 12:34:13 +00:00
|
|
|
make DESTDIR=appdir -j$(nproc) install ; find appdir/
|
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-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
|
|
|
|
|
2018-10-23 11:50:42 +01:00
|
|
|
git clone https://github.com/AppImage/AppImageUpdate.git
|
|
|
|
cd AppImageUpdate
|
2018-11-02 13:45:18 +00:00
|
|
|
#ver=`printf "appimageupdatetool-%s-%s-x86_64.AppImage" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"`
|
|
|
|
git submodule update --init --recursive
|
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
#sudo wget https://github.com/AppImage/AppImageUpdate/releases/download/continuous/${ver} -O /usr/bin/appimageupdatetool
|
|
|
|
#chmod +x /usr/bin/appimageupdatetool
|
2018-10-23 11:50:42 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
cp /usr/bin/appimageupdatetool appdir/usr/bin
|
|
|
|
|
2018-10-27 17:47:45 +01:00
|
|
|
sudo pip3 install pyinstaller || true
|
|
|
|
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O ytdl.zip || true
|
|
|
|
unzip ytdl.zip || true
|
|
|
|
pyinstaller __main__.py -n youtube-dl --onefile || true
|
|
|
|
cp dist/youtube-dl appdir/usr/bin || true
|
2018-10-27 17:05:14 +01:00
|
|
|
|
2018-10-21 17:51:37 +01:00
|
|
|
export UPD_INFO="gh-releases-zsync|NamedKitten|KittehPlayer|continuous|KittehPlayer-$ARCH.AppImage.zsync"
|
2018-11-02 13:32:30 +00:00
|
|
|
export EXTRA_QT_PLUGINS="qgtk3"
|
2018-10-27 17:05:14 +01:00
|
|
|
./linuxdeploy-x86_64.AppImage --appdir appdir --plugin qt --output appimage -v 3
|