Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build AppImage on TravisCI #292

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: cpp
dist: trusty
compiler: g++
sudo: required

before_install:
- sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y
- sudo apt-get update

install:
- sudo apt-get install qt53tools qt53base qt53svg qt53xmlpatterns qt53websockets
- source /opt/qt53/bin/qt53-env.sh
- sudo apt-get -y install checkinstall
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage

script:
# Compile project
- /opt/qt53/bin/qmake PREFIX=/usr src/subtivals.pro
- make
# Generate AppImage
- sudo checkinstall --pkgname=app --pkgversion="1" --pkgrelease="1" --backup=no --fstrans=no --default --deldoc
- mkdir -p appdir/usr/bin ; cd appdir
- dpkg -x ../app_1-1_amd64.deb . ; find .
- cp ./usr/share/icons/hicolor/scalable/apps/subtivals.svg .
- cp ./usr/share/applications/subtivals.desktop .
- cd ..
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- ./linuxdeployqt*.AppImage ./appdir/usr/bin/* -bundle-non-qt-libs
- ./linuxdeployqt*.AppImage ./appdir/subtivals.desktop -appimage

after_success:
- curl --upload-file ./Subtivals*.AppImage https://transfer.sh/subtivals-git.$(git rev-parse --short HEAD)-x86_64.AppImage