From babc3d57825260a921c1dc6a779417e975afd663 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Sun, 24 Mar 2019 15:41:48 -0400 Subject: [PATCH] create appimage --- appveyor.yml | 13 +++++++++++++ lin-installer/create_appimage.sh | 25 ------------------------- 2 files changed, 13 insertions(+), 25 deletions(-) delete mode 100755 lin-installer/create_appimage.sh diff --git a/appveyor.yml b/appveyor.yml index 07bf86d..b194fbf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,6 +29,17 @@ build_script: after_build: - cmd: nmake package - sh: make package + # Appimage setup + - sh: make DESTDIR=root install + - sh: wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" + - sh: chmod +x linuxdeployqt*.AppImage + - sh: unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH + # Add some libraries that don't get detected + - sh: mkdir -p root/usr/local/{qml/QtQuick,plugins} + - sh: cp -r /opt/qt510/qml/QtQuick/Dialogs root/usr/local/qml/QtQuick + - sh: cp -r /opt/qt510/plugins/xcbglintegrations root/usr/local/plugins + # Run linuxdeployqt to find libaries and make appimage + - sh: ./linuxdeployqt*.AppImage root/usr/local/share/applications/puush-qt.desktop -qmldir=/opt/qt510/qml -bundle-non-qt-libs -appimage artifacts: - path: build\puush-qt-*-win64.zip @@ -41,3 +52,5 @@ artifacts: name: self extracting shell script - path: build\puush-qt-*-Linux.deb name: debian package + - path: build\puush-qt*.Appimage + name: appimage diff --git a/lin-installer/create_appimage.sh b/lin-installer/create_appimage.sh deleted file mode 100755 index 6c96e2d..0000000 --- a/lin-installer/create_appimage.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# Run in this directory! -source /opt/qt57/bin/qt591-env.sh - -mkdir ../build -cd ../build -cmake -DMakeDeb=On .. -make -cpack - -dpkg -x puush-qt*.deb root - -wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" -chmod +x linuxdeployqt*.AppImage -unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH - -mkdir -p root/usr/qml/QtQuick -cp -r /opt/qt57/qml/QtQuick/Dialogs root/usr/qml/QtQuick -mkdir -p root/usr/plugins -cp -r /opt/qt57/plugins/xcbglintegrations root/usr/plugins - -./linuxdeployqt*.AppImage root/usr/share/applications/puush-qt.desktop \ - -qmldir=/opt/qt57/qml \ - -bundle-non-qt-libs \ - -appimage