Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,47 @@ Windows users need to install manually.
3. Run `handler-install.bat` to register protocol handler
4. Edit `config.toml` and set `mpv` and `ytdl` path

### Macos

Macos user need to install manually.

#### Manual installation

1. Clone the repo.
2. Install cargo.
3. Run `cargo build` in the repo to build the binary.
4. Move the binary to `/usr/local/bin/mpv-handler` or other path in your `$PATH`.
5. Move `share/macos/mpv-handler.app` to `/Applications` or `~/Applications` if your binary is in `/usr/local/bin/mpv-handler`, then open it once to register scheme.
Or you can create app manually as follows:
1. Install [Platypus](https://github.com/sveinbjornt/Platypus) and then install `platypus` cli.
1. Create a wrapper:
```sh
#!/bin/sh
exec "/usr/local/bin/mpv-handler" "$@"
```
at any position.
1. Run
```zsh
platypus \
-a "mpv-handler" \
-I "io.github.akiirui.mpv-handler" \
-U "mpv-handler" \
-o None \
-B \
-R \
-y \
/path/to/mpv-handler-wrapper.sh \
~/Applications/mpv-handler.app
```
to create an app to register scheme.

#### Manual installation

1. Download [latest Windows release][download-windows]
2. Unzip the archive to the directory you want
3. Run `handler-install.bat` to register protocol handler
4. Edit `config.toml` and set `mpv` and `ytdl` path

## Configuration

```toml
Expand Down
Binary file added share/macos/mpv-handler.app/Contents/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
3 changes: 3 additions & 0 deletions share/macos/mpv-handler.app/Contents/Resources/script
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
exec "/usr/local/bin/mpv-handler" "$@"