To install a plugin automatically with Mplug, there have to be install
instructions in the mpv script directory. To do this, add the following
information to the entry in the file mpv_script_directory.json
.
Most likely you will find all information on the scripts site.
This is the method, how the plugin should be downloaded and installed.
Currently the only method supported in mplug is git
.
git
: Clone a git repository containing the scripts and create symlinks for the relevant files.tar
: Download and unpack a tarball.url
: Download a single file.
The property receiving_url
must specify the source to obtain the plugin from.
- If
install
isgit
this is the cloneable url. - If
install
istar
this is url of the tarball - If
install
isurl
this is url of the script.
install_dir
specifies the name of the folder that contains the downloaded
content. This is needed so that if multiple plugins share a git repo or tarball
this must not be downloaded multiple times.
If install
is url
, a second field filename
must specify the name of the
file that will be downloaded.
- For repositories on github/gitlab/similar
install_dir
should follow the formgithub\username\reponame
. - For others choose a unique directory name.
This Specifies which files from the downloaded should be installed where.
scriptfiles
: List of files that should be installed in the script folder.scriptoptfiles
: List of files that should be installed in the script-opts folder.shaderfiles
: List of files that should be installed in the shaders folderfontfiles
: List of files that should be installed in the fonts folderladspafiles
: List of ladspa-files that should be installed.executeablefiles
: List of executeable files that should be installed (user queried, defaults to~/bin
).
If there is anything the user should do or know you can use the field
install-notes
its text will be displayed after the installation. This is
mainly for cases where some installation steps cannot be done automatically by
mplug.