ctrlg icon indicating copy to clipboard operation
ctrlg copied to clipboard

[Feature]: Publish to Homebrew (needs help)

Open mrjones2014 opened this issue 3 years ago • 2 comments

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.

mrjones2014 avatar Jan 07 '22 15:01 mrjones2014

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.

mrjones2014 avatar Jan 11 '22 17:01 mrjones2014

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

mrjones2014 avatar Jan 11 '22 18:01 mrjones2014