mpv-handler
mpv-handler copied to clipboard
mac支持吗?
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
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
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 If you implement it, I am willing to build and test it (I have an M1 MacBook Air running MacOS Ventura)
@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.
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
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
@feifan1113 I don’t know any other way to package macOS programs, let's waiting for other contributors.