-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
player/main: Add install/uninstall options for Windows
On Linux, we have `mpv.desktop`, and on macOS, we have `osxbundle`, both of which handle file associations and protocol registration in the system environment. On Windows, this information is stored in the registry, so this commit adds support for it. It registers the application, supported file types, and supported protocols, and adds an uninstall entry so users can remove all registrations via the control panel. Note that this does not remove the binary itself. The implementation is fully portable. There are no external installers, as mpv handles everything automatically. This should improve usability when moving binaries and so on. - `mpv --install` registers mpv (see verbose output for a list of actions). - `mpv --uninstall` reverts all changes made during installation. - `mpv --install-rpath <string>` allows specifying a string to be prepended to `PATH` before running mpv. This is useful when using external dependencies that shouldn't be added globally to `PATH`.
- Loading branch information
Showing
6 changed files
with
488 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.