2019-06-23 05:48:16 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-08-24 02:30:02 +01:00
|
|
|
set -e
|
|
|
|
|
2019-06-23 05:48:16 +01:00
|
|
|
qmake APPIMAGE=1 CONFIG+=release PREFIX=/usr DEFINES+=GIT_HASH_SHORT=$(git rev-parse --short HEAD)
|
|
|
|
make -j$(nproc) CXX=${CXX} CC=${CC} LINK=${CXX}
|
|
|
|
make INSTALL_ROOT=appdir install ; find appdir/
|
2020-07-05 06:24:32 +01:00
|
|
|
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage"
|
|
|
|
chmod a+x linuxdeployqt-*.AppImage
|
2019-06-23 05:48:16 +01:00
|
|
|
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
|
|
|
export VERSION=$(git rev-parse --short HEAD)
|
2020-07-05 06:24:32 +01:00
|
|
|
./linuxdeployqt-*.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -verbose=2 -unsupported-allow-new-glibc
|
2019-06-23 05:48:16 +01:00
|
|
|
mkdir -p appdir/usr/optional/ ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/exec-x86_64.so -O ./appdir/usr/optional/exec.so
|
|
|
|
mkdir -p appdir/usr/optional/libstdc++/ ; cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./appdir/usr/optional/libstdc++/
|
2020-07-05 06:24:32 +01:00
|
|
|
./linuxdeployqt-*.AppImage --appimage-extract
|
2019-06-23 05:48:16 +01:00
|
|
|
rm ./appdir/AppRun ; cp ./resources/AppRun appdir/ ; chmod a+x ./appdir/AppRun
|
|
|
|
PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool -g ./appdir/
|