Skip to content

Commit 44a39a4

Browse files
committed
Generate AppImage and upload to GitHub Releases
1 parent 3ceea09 commit 44a39a4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,22 @@ install:
2020
before_script:
2121
- autoreconf -i
2222
script:
23-
- ./configure
23+
- ./configure --prefix=/usr
2424
- make clean
25-
- build-wrapper-linux-x86-64 --out-dir bw-output make all
25+
- build-wrapper-linux-x86-64 --out-dir bw-output make -j$(nproc) all
2626
- sonar-scanner
27+
- make install DESTDIR=$(readlink -f appdir) ; find appdir/
28+
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
29+
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
30+
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
31+
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage -qmake=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
2732
after_success:
28-
- sudo make install
33+
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
34+
- bash upload.sh QPhotoRec*.AppImage*
35+
branches:
36+
except:
37+
- # Do not build tags that we create when we upload to GitHub Releases
38+
- /^(?i:continuous)/
2939
cache:
3040
directories:
3141
- '$HOME/.sonar/cache'

0 commit comments

Comments
 (0)