1
0
Fork 0

[Scripts] Get ready for using prebuilt mpv.

This commit is contained in:
Kitteh 2018-11-06 09:21:43 +00:00
parent 103d626c56
commit 32929d0ceb
2 changed files with 15 additions and 5 deletions

View file

@ -22,7 +22,7 @@ install:
- source /opt/qt*/bin/qt*-env.sh - source /opt/qt*/bin/qt*-env.sh
script: script:
- time bash scripts/build-mpv.sh - time bash scripts/build-deps.sh
- time bash scripts/makeappimage.sh - time bash scripts/makeappimage.sh
after_success: after_success:

View file

@ -6,6 +6,13 @@ export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH"
export CFLAGS="-Os -pipe" 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 #rm -rf mpv-build
git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build
cd mpv-build cd mpv-build
@ -22,11 +29,14 @@ echo "--disable-cplayer --disable-caca --disable-wayland --disable-gl-wayland --
sudo ./install sudo ./install
ccache -s ccache -s
if [ -z "${UPLOAD}" ]; then
cd mpv cd mpv
python waf -v install --destdir=destdir python waf -v install --destdir=~/.cache/deps
cd destdir cd ~/.cache/deps
tar caf mpv.tar * tar caf deps.tar.xz *
wget https://github.com/probonopd/uploadtool/raw/master/upload.sh 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 cd $OLDDIR