Bundle appdata XML in appimage

This commit is contained in:
miruka 2021-07-11 12:57:56 -04:00
parent e50a7531ee
commit f2b981e288

View File

@ -38,6 +38,7 @@ setup_dns() {
install_apt_packages() { install_apt_packages() {
apt install -y software-properties-common apt install -y software-properties-common
add-apt-repository -y ppa:beineri/opt-qt-5.12.9-xenial add-apt-repository -y ppa:beineri/opt-qt-5.12.9-xenial
add-apt-repository -y ppa:beineri/opt-qt-5.12.9-xenial
apt update -y apt update -y
apt install -y \ apt install -y \
@ -52,7 +53,7 @@ install_apt_packages() {
libtiff5-dev liblcms2-dev libwebp-dev libopenjp2-7-dev \ libtiff5-dev liblcms2-dev libwebp-dev libopenjp2-7-dev \
libx11-dev libxss-dev libasound2-dev \ libx11-dev libxss-dev libasound2-dev \
pkg-config libdbus-1-dev libglib2.0-dev \ pkg-config libdbus-1-dev libglib2.0-dev \
desktop-file-utils # for appimage-lint.sh appstream-util desktop-file-utils # for appimage-lint.sh
/usr/sbin/update-ccache-symlinks /usr/sbin/update-ccache-symlinks
} }
@ -173,6 +174,9 @@ complete_appdir() {
~/linuxdeployqt.AppImage appdir/usr/share/applications/mirage.desktop \ ~/linuxdeployqt.AppImage appdir/usr/share/applications/mirage.desktop \
-bundle-non-qt-libs -qmldir=../src/gui -bundle-non-qt-libs -qmldir=../src/gui
mkdir -p appdir/usr/share/metainfo
cp ~/mirage/packaging/mirage.appdata.xml appdir/usr/share/metainfo
cp /opt/qt512/qml/io/thp/pyotherside/qmldir \ cp /opt/qt512/qml/io/thp/pyotherside/qmldir \
appdir/usr/qml/io/thp/pyotherside appdir/usr/qml/io/thp/pyotherside