refactor(mpv): remove unused items

This commit is contained in:
rydesun 2021-07-10 00:01:44 +08:00
parent b436a8f25e
commit a4ea494912
3 changed files with 7 additions and 30 deletions

View file

@ -1,10 +1,5 @@
#!/usr/bin/bash -e
if ! command -v 7z &>/dev/null; then
echo p7zip is missing >&2
exit 1
fi
config_dir=${XDG_CONFIG_HOME:-~/.config}/mpv/
script_dir=${config_dir}/scripts/
shader_dir=${config_dir}/shaders/
@ -24,11 +19,6 @@ curl -fL --create-dirs -o "${script_dir}/zenity-open-files.lua" \
https://github.com/alifarazz/mpv-zenity-open-files/raw/master/zenity-open-files.lua
echo "Updating shaders..."
curl -fL --create-dirs -o /tmp/mpv/fsrcnnx.7z \
https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/checkpoints_params.7z \
&& 7z e -o"${shader_dir}" -y /tmp/mpv/fsrcnnx.7z FSRCNNX_x2_16-0-4-1.glsl \
&& rm /tmp/mpv/fsrcnnx.7z
curl -fL --create-dirs -o "${shader_dir}/FSRCNNX_x2_8-0-4-1.glsl" \
https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_8-0-4-1.glsl