Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

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

Open
1 task done
mrjones2014 opened this issue Jan 7, 2022 · 2 comments
Open
1 task done

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

mrjones2014 opened this issue Jan 7, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mrjones2014
Copy link
Owner

Similar Issues

  • 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 mrjones2014 added the enhancement New feature or request label Jan 7, 2022
@mrjones2014 mrjones2014 added the help wanted Extra attention is needed label Jan 7, 2022
@mrjones2014
Copy link
Owner Author

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 mrjones2014 pinned this issue Jan 11, 2022
@mrjones2014
Copy link
Owner Author

mrjones2014 commented Jan 11, 2022

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 mrjones2014 changed the title [Feature]: Publish to Homebrew [Feature]: Publish to Homebrew (needs help) Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant