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 on each git push and upload an AppImage #338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: c++
sudo: false
sudo: true
dist: trusty

compiler:
- clang
Expand All @@ -22,5 +23,20 @@ addons:

script:
- ./bootstrap
- ./configure
- make release-check
- ./configure --prefix=/usr
- make -j4
- make install DESTDIR=$(readlink -f appdir) ; find appdir/
- # Dear upstream developer, can you make the Makefile do the next 4 lines?
- mkdir -p appdir/usr/share/icons/hicolor/48x48/apps/
- cp contrib/lftp-icon.png appdir/usr/share/icons/hicolor/48x48/apps/
- mkdir -p appdir/usr/share/applications
- cp contrib/lftp.desktop appdir/usr/share/applications

after_success:
- appdir/usr/bin/lftp -c "get https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- curl --upload-file ./LFTP*.AppImage https://transfer.sh/LFTP-git.$(git rev-parse --short HEAD)-x86_64.AppImage
8 changes: 8 additions & 0 deletions contrib/lftp.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.0
Name=LFTP
Icon=lftp-icon
Type=Application
Terminal=true
Exec=lftp
Categories=Network;