What are the requirements for a mac release? Do you want package manager support (brew) or a .dmg or just an executable?
Discussion
Several people have offered, but I worry about chain of trust / custody issues. I'd really rather compile it myself on a macbook so users aren't trusting another person who might inject a backdoor or something.
I don't even like asking people to trust me. Which is why I suggest compiling it yourself, and I publish all the code.
Someone could write good instructions to build on Mac and include with docs. Would be helpful for a lot of ppl.
Interesting. In that case you may be able to use a third party CI service to build intel native binaries for MacOS and then just have the Apple Silicon users use the Rosetta 2 layer (intel apps translated to apple silicon, kinda like wine for chips?)
What about GitHub Actions? They have MacOS there.
Can this package for MacOS too? I don't even know what packaging system MacOS uses.
None... got to use homebrew or macports
“Brew” is great.
Right now, if you just
brew install rust;
cargo build --release
Just works. You could add gossip to brew, then folks can just use brew to manage it without having to know how to get the source from GitHub.
#[0] I have not tried this on a linux box (I use a mac), but I think you might be able to easily build for macos using cargo-bundle: https://github.com/burtonageo/cargo-bundle
I'm compiling gossip from the repo, but early on out of curiosity I installed cargo-bundle, created a simple Cargo.toml and then was able to generate a stand-alone app bundle for macos that worked fine.
cargo-bundle says it cross-compiles with a simple --target flag so my guess is that you would be able to pretty simply build at least for intel macs. On a quick glance through the repo I'm not sure if it can cross-compile for apple silicon yet. There's an open issue about implementing fat binaries that would run on both intel and apple silicon macs.
If you want to try it, I'll test for you. I have both an intel mac and an apple silicon mac.