diff --git a/.travis.yml b/.travis.yml index c489587..0f28a60 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,26 +1,30 @@ language: cpp compiler: gcc sudo: require -dist: xenial +dist: trusty + cache: + ccache: true + directories: + - /var/cache/apt/archives paths: - - /var/cache/apt/archives + - /var/cache/apt/archives before_install: - - mkdir -p $TRAVIS_BUILD_DIR/apt-cache/ - - sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial -y + - sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y - sudo apt-get update install: - - sudo apt-get -y install libmpv-dev qt511-meta-minimal qt511quickcontrols qt511quickcontrols2 qt511imageformats qt511svg libavcodec-dev libavcodec-extra libgl1-mesa-dev + - sudo apt-get -y install libmpv-dev qt511-meta-minimal qt511quickcontrols2 qt511imageformats qt511svg libgl1-mesa-dev - source /opt/qt*/bin/qt*-env.sh script: + - bash scripts/build-mpv.sh - qmake CONFIG+=release PREFIX=/usr - make -j$(nproc) - make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/ - #- wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" - #- chmod a+x linuxdeployqt-continuous-x86_64.AppImage + - wget "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" + - chmod a+x linuxdeployqt-continuous-x86_64.AppImage - wget "https://artifacts.assassinate-you.net/artifactory/linuxdeploy/travis-154/linuxdeploy-x86_64.AppImage" - wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage - chmod +x linux* @@ -28,9 +32,9 @@ script: - export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file - mkdir -p appdir/usr/plugins/imageformats/ - cp /opt/qt*/plugins/imageformats/libqsvg.so appdir/usr/plugins/imageformats/ - - #./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -bundle-non-qt-libs - - #./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage - - ./linuxdeploy-x86_64.AppImage --appdir AppDir -e KittehPlayer -i KittehPlayer.png -d KittehPlayer.desktop --plugin qt --output appimage + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -bundle-non-qt-libs + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -qmldir=./src/qml/ -appimage + - #./linuxdeploy-x86_64.AppImage --appdir AppDir -e KittehPlayer -i KittehPlayer.png -d KittehPlayer.desktop --plugin qt --output appimage after_success: - find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh new file mode 100644 index 0000000..7ba2ae0 --- /dev/null +++ b/scripts/build-mpv.sh @@ -0,0 +1,10 @@ +#!/bin/bash +git clone --depth 1 https://github.com/mpv-player/mpv-build +cd mpv-build + +echo --enable-libmpv-shared > mpv_options +echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options + +./rebuild -j`nproc` +sudo ./install +cd ..