mrjones2014 / ctrlg

A command line context switcher, written in Rust :crab:
https://crates.io/crates/ctrlg
MIT License
30 stars 1 forks source link

[Feature]: Publish to Homebrew (needs help) #37

Open mrjones2014 opened 2 years ago

mrjones2014 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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