From 3c526f9505c7f473bbc5592bb5f7298ff6fd16ab Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 26 Feb 2017 14:57:53 +0100 Subject: [PATCH] Create AppImage --- .travis.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index eac7c708..761bb2cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,13 +40,28 @@ script: - mkdir build - mkdir build_cipher - cd build - - cmake -DENABLE_TESTING=ON .. + - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_TESTING=ON .. - make - ctest -V - cd ../build_cipher - - cmake -DENABLE_TESTING=ON -Dsqlcipher=1 .. + - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_TESTING=ON -Dsqlcipher=1 .. - make - ctest -V + - # AppImage generation + - cd ../build + - sudo apt-get -y install checkinstall + - sudo checkinstall --pkgname=app --pkgversion="1" --pkgrelease="1" --backup=no --fstrans=no --default --deldoc + - mkdir appdir ; cd appdir + - dpkg -x ../app_1-1_amd64.deb . ; find . + - cp ./usr/share/applications/sqlitebrowser.desktop . + - cp ./usr/share/icons/hicolor/256x256/apps/sqlitebrowser.png . + - cd .. + - wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/3/linuxdeployqt-3-x86_64.AppImage" + - chmod a+x linuxdeployqt*.AppImage + - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH + - ./linuxdeployqt*.AppImage ./appdir/usr/bin/sqlitebrowser -bundle-non-qt-libs + - ./linuxdeployqt*.AppImage ./appdir/usr/bin/sqlitebrowser -appimage + - curl --upload-file ./DB*.AppImage https://transfer.sh/sqlitebrowser-git.$(git rev-parse --short HEAD)-x86_64.AppImage notifications: email: