Generate AppImage and upload to GitHub Releases

This commit is contained in:
probonopd 2019-01-06 08:39:47 +00:00
parent 3ceea092e0
commit 44a39a4b79

View file

@ -20,12 +20,22 @@ install:
before_script: before_script:
- autoreconf -i - autoreconf -i
script: script:
- ./configure - ./configure --prefix=/usr
- make clean - make clean
- build-wrapper-linux-x86-64 --out-dir bw-output make all - build-wrapper-linux-x86-64 --out-dir bw-output make -j$(nproc) all
- sonar-scanner - sonar-scanner
- make install DESTDIR=$(readlink -f appdir) ; find appdir/
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage -qmake=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
after_success: after_success:
- sudo make install - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh QPhotoRec*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
cache: cache:
directories: directories:
- '$HOME/.sonar/cache' - '$HOME/.sonar/cache'