forked from tnychn/mpv-discord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_windows.bat
executable file
·44 lines (35 loc) · 1.09 KB
/
install_windows.bat
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
37
38
39
40
41
42
43
44
@echo off
set src_dir=%~dp0
cd %src_dir%
set /p mpv_dir=Path:
if exist %mpv_dir% (
if not exist %mpv_dir%\mpv.exe (
echo Failed to locate 'mpv.exe' in '%mpv_dir%'.
pause & exit /b 1
)
) else (
echo Path '%mpv_dir%' does not exist.
pause & exit /b 1
)
set config_dir=%mpv_dir%
if exist %mpv_dir%\portable_config set config_dir=%mpv_dir%\portable_config
set scripts_dir=%config_dir%\scripts
set script_opts_dir=%config_dir%\script-opts
if not exist %scripts_dir% mkdir %scripts_dir%
if not exist %script_opts_dir% mkdir %script_opts_dir%
echo Copying: discord.conf
copy %src_dir%\script-opts\discord.conf %script_opts_dir% >nul
echo Copying: discord.lua
copy %src_dir%\scripts\discord.lua %scripts_dir% >nul
echo Copying: mpv-discord.exe
copy %src_dir%\bin\windows\mpv-discord.exe %config_dir%\discord.exe >nul
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=%config_dir%\discord.exe
echo:
pause