From 76139350c9ff4230d7a3846403735b534210cb2b Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 23 Sep 2023 15:34:23 +0200 Subject: [PATCH] Remove Travis instructions [ci skip] travis.org stopped working properly a long time ago --- README.md | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/README.md b/README.md index 8e2ca63f..18d3e847 100644 --- a/README.md +++ b/README.md @@ -167,55 +167,6 @@ So, on `linuxdeployqt` call: `linuxdeployqt [...] -qtlibinfix "Custom" [...]`. If you don't mention this infix, `linuxdeployqt` won't be able to detect Qt Core and Widgets libraries. -## Using linuxdeployqt with Travis CI - -A common use case for `linuxdeployqt` is to use it on Travis CI after the `make` command. The following example illustrates how to use `linuxdeployqt` with Travis CI. Create a `.travis.yml` file similar to this one (be sure to customize it, e.g., change `APPNAME` to the name of your application as it is spelled in the `Name=` entry of the `.desktop` file): - -``` -language: cpp -compiler: gcc -sudo: require -dist: trusty - -before_install: - - sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y - - sudo apt-get update -qq - -install: - - sudo apt-get -y install qt510base libgl1-mesa-dev - - source /opt/qt*/bin/qt*-env.sh - -script: - - qmake CONFIG+=release PREFIX=/usr - - make -j$(nproc) - - make INSTALL_ROOT=appdir -j$(nproc) install ; 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=... # linuxdeployqt uses this for naming the file - - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage - -after_success: - # find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq # for debugging - # curl --upload-file APPNAME*.AppImage https://transfer.sh/APPNAME-git.$(git rev-parse --short HEAD)-x86_64.AppImage - - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - - bash upload.sh APPNAME*.AppImage* - -branches: - except: - - # Do not build tags that we create when we upload to GitHub Releases - - /^(?i:continuous)/ -``` - -When you save your change, then Travis CI should build and upload an AppImage for you. More likely than not, some fine-tuning will still be required. - -For this to work, you need to set up `GITHUB_TOKEN` in Travis CI; please see https://github.com/probonopd/uploadtool. - -By default, qmake `.pro` files generated by Qt Creator unfortunately don't support `make install` out of the box. In this case you will get - -``` -make: Nothing to be done for `install'. -find: `appdir/': No such file or directory -``` ### Fix for "make: Nothing to be done for 'install'" If `qmake` does not allow for `make install` or does not install the desktop file and icon, then you need to change your `.pro` file it similar to https://github.com/probonopd/FeedTheMonkey/blob/master/FeedTheMonkey.pro.