forked from tnychn/mpv-discord
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall_linux.sh
More file actions
executable file
·36 lines (29 loc) · 842 Bytes
/
install_linux.sh
File metadata and controls
executable file
·36 lines (29 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
cd "$(dirname "$0")" || exit
mpv_dir="${MPV_HOME:-${XDG_CONFIG_HOME:-${HOME}/.config}/mpv}"
scripts_dir=$mpv_dir/scripts
script_opts_dir=$mpv_dir/script-opts
if [ ! -d "$mpv_dir" ]; then
mkdir -p "$mpv_dir"
fi
if [ ! -d "$scripts_dir" ]; then
mkdir "$scripts_dir"
fi
if [ ! -d "$script_opts_dir" ]; then
mkdir "$script_opts_dir"
fi
echo "Copying: discord.conf"
cp ./script-opts/discord.conf "$script_opts_dir"
echo "Copying: discord.lua"
cp ./scripts/discord.lua "$scripts_dir"
echo "Copying: mpv-discord"
cp ./bin/linux/mpv-discord "$mpv_dir"/discord
echo
echo "Path to mpv directory: $mpv_dir"
echo "Path to config file: $script_opts_dir/discord.conf"
echo
echo "You're almost done!"
echo "Please manually edit the following option in the config file:"
echo
echo " binary_path=$mpv_dir/discord"
echo