[Scripts] Get ready for using prebuilt mpv.
This commit is contained in:
parent
103d626c56
commit
32929d0ceb
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue