Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac支持吗? #17

Open
Z-fly opened this issue Oct 26, 2021 · 8 comments
Open

mac支持吗? #17

Z-fly opened this issue Oct 26, 2021 · 8 comments

Comments

@Z-fly
Copy link

Z-fly commented Oct 26, 2021

No description provided.

@akiirui
Copy link
Owner

akiirui commented Oct 27, 2021

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

@zhongfly
Copy link

zhongfly commented Nov 22, 2021

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

@akiirui
Copy link
Owner

akiirui commented Nov 23, 2021

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.)

@R3D4CTED
Copy link

R3D4CTED commented Nov 8, 2022

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

@akiirui
Copy link
Owner

akiirui commented Nov 8, 2022

@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
Copy link
Owner

akiirui commented Jan 17, 2023

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

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

@feifan1113
Copy link

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

@akiirui
Copy link
Owner

akiirui commented Sep 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants