ctrlg
ctrlg copied to clipboard
[Feature]: Publish to Homebrew (needs help)
Similar Issues
- [X] Before filing, I have searched for similar issues.
Description
We should publish to Homebrew. I haven't really done this before. Will require some research or some help from others.
Use Case
So that people can install from brew without needing to install a rust toolchain manually.
Might be able to do something like this: https://federicoterzi.com/blog/how-to-publish-your-rust-project-on-homebrew/
Just need to figure out how to do different binaries for different platforms.
Maybe we can just put all the binaries into a single tar.gz archive then rename it during install by checking platform, e.g. (pseudocode)
if (is macOS x86)
bin.install "ctrlg-macos-x86" => "ctrlg"
else if (is macOS ARM)
bin.install "ctrlg-macos-arm" => "ctrlg"
else
bin.install "ctrlg-linux-x86" => "ctrlg"
end
https://docs.brew.sh/Formula-Cookbook#bininstall-foo