mpv-handler icon indicating copy to clipboard operation
mpv-handler copied to clipboard

mac支持吗?

Open Z-fly opened this issue 3 years ago • 8 comments

Z-fly avatar Oct 26 '21 05:10 Z-fly

Rust can build mpv-handler for macOS targets. But I don't have a macOS device. So, I don't know how to register the protocol for macOS.

Welcome to PR

akiirui avatar Oct 27 '21 16:10 akiirui

Rust can build mpv-handler for macOS targets. But I don't have a macOS device. So, I don't know how to register the protocol for macOS.

Welcome to PR

Maybe you can try Github Action?It provide macOs.https://github.com/actions/virtual-environments#available-environments

zhongfly avatar Nov 22 '21 03:11 zhongfly

Maybe you can try Github Action?It provide macOs.https://github.com/actions/virtual-environments#available-environments

Building a binary isn't a trouble. The trouble is how to register an protocol. (Maybe I can do this, but I cannot test it.)

akiirui avatar Nov 23 '21 05:11 akiirui

@akiirui If you implement it, I am willing to build and test it (I have an M1 MacBook Air running MacOS Ventura)

R3D4CTED avatar Nov 08 '22 13:11 R3D4CTED

@akiirui If you implement it, I am willing to build and test it (I have an M1 MacBook Air running MacOS Ventura)

Sorry, I read something about macOS, in order to register the URL handler on macOS, we need to using XCode to package the application.

Or manual edit ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist (ref: https://superuser.com/a/548122) But I don't know if this method still works.

If you can test it, welcome to share your results.

akiirui avatar Nov 08 '22 16:11 akiirui

I try to build a beta version for macOS https://github.com/akiirui/mpv-handler/commit/376e7ab8e04f83dc20a76e89bfd2352f945cba00.

Please test it and tell me the result. @R3D4CTED @zhongfly

akiirui avatar Jan 17 '23 10:01 akiirui

I try to build a beta version for macOS 376e7ab.

Please test it and tell me the result. @R3D4CTED @zhongfly then macos cannot write the /usr/bin but can write /usr/local/bin,so i “sudo ln -s /Applications/mpv.app/Contents/MacOS/mpv /usr/local/bin” and change the config.toml mpv = "/usr/local/bin/mpv",but still not work image

feifan1113 avatar Sep 20 '23 23:09 feifan1113

@feifan1113 I don’t know any other way to package macOS programs, let's waiting for other contributors.

akiirui avatar Sep 21 '23 04:09 akiirui