diff --git a/.travis.yml b/.travis.yml index 4347fc2..8dd6f15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ install: - source /opt/qt*/bin/qt*-env.sh script: - - time bash scripts/build-mpv.sh + - time bash scripts/build-deps.sh - time bash scripts/makeappimage.sh after_success: diff --git a/scripts/build-mpv.sh b/scripts/build-deps.sh similarity index 72% rename from scripts/build-mpv.sh rename to scripts/build-deps.sh index 88c4a3e..770ffe2 100755 --- a/scripts/build-mpv.sh +++ b/scripts/build-deps.sh @@ -6,6 +6,13 @@ export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH" export CFLAGS="-Os -pipe" +mkdir -p ~/.cache/deps + +if [ -z "${USE_PREBUILT_MPV}" ]; then +wget https://github.com/NamedKitten/mpv-builder/releases/download/continuous/deps.tar.xz +tar xvf deps.tar.xz -C / +fi + #rm -rf mpv-build git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build cd mpv-build @@ -22,11 +29,14 @@ echo "--disable-cplayer --disable-caca --disable-wayland --disable-gl-wayland -- sudo ./install ccache -s +if [ -z "${UPLOAD}" ]; then cd mpv -python waf -v install --destdir=destdir -cd destdir -tar caf mpv.tar * +python waf -v install --destdir=~/.cache/deps +cd ~/.cache/deps +tar caf deps.tar.xz * wget https://github.com/probonopd/uploadtool/raw/master/upload.sh -bash upload.sh mpv.tar +bash upload.sh deps.tar.xz +cd $MPVDIR +fi cd $OLDDIR