tarkah / tickrs

Realtime ticker data in your terminal 📈
MIT License
1.16k stars 58 forks source link

Create a Homebrew formula #113

Closed VDuchauffour closed 3 years ago

VDuchauffour commented 3 years ago

Hi,

It could be a good idea to create a homebrew formula for MacOS users.

Thanks, Vincent

tarkah commented 3 years ago

I think that'd be great. Unfortunately I do not have a macos device, so it'd be awesome if someone from the community could open a PR for that.

miraclx commented 3 years ago

I don't have a macOS device either, but https://github.com/fastai/fastmac.

Gets you an SSH into GitHub Actions macs.

I haven't read on how to make said formulas, but I could certainly experiment with it, and perhaps put something together in my free time

casperstorm commented 3 years ago

I can help you guys.

Do you want it on homebrew/core or your own tap? I would properly just suggest your own tap so you can update it without worrying about having someone review it every time.

Then you can do something like:

brew tap tarkah/tickrs
brew install tickrs

If you want to go this road, this is basically what we need to do: https://federicoterzi.com/blog/how-to-publish-your-rust-project-on-homebrew/ If you want it on homebrew/core it requires a little more work, tests etc: https://docs.brew.sh/Formula-Cookbook#an-introduction

It is, imho, much easier to just create your own tap. I can help with it if needed, just let me know.

tarkah commented 3 years ago

Thanks, @casperstorm! Sounds like tap is the way to go, seems super easy.

I can probably put that together myself, but it'd be great if you could help test.

casperstorm commented 3 years ago

Thanks, @casperstorm! Sounds like tap is the way to go, seems super easy.

I can probably put that together myself, but it'd be great if you could help test.

I agree, then you also have the control. Just let me know when to test/review.

tarkah commented 3 years ago

@casperstorm Ok, can you test?

brew tap tarkah/tickrs
brew install tickrs
tarkah commented 3 years ago

I've set up the repo here: https://github.com/tarkah/homebrew-tickrs

And I plan on adding this to my actions of this repo to bump that via PR:

https://github.com/mislav/bump-homebrew-formula-action

tarkah commented 3 years ago

@VDuchauffour Ok, this has been created. You can install via the following. I've added this to the README and will update moving forward

brew tap tarkah/tickrs
brew install tickrs
VDuchauffour commented 3 years ago

@tarkah thanks for quick response ! but I get this error tickrs: no bottle available! when i try to install after the tapcommand

tarkah commented 3 years ago

Hmm... @casperstorm can you try again? I updated the repo for v0.14.1 and maybe that broke something? Or maybe you know what the issue here is?

miraclx commented 3 years ago

Works just fine on my end. Great job!

With tickrs --version verified to be v0.14.1.

miraclx commented 3 years ago

An aside: I noticed tickrs couldn't capture shift+left/right within the SSH session, but it correctly registers shift+[char], shift+tab and left/right individually.

Please confirm this if is reproducible behavior in macOS itself, otherwise, I guess, it's something wrong at my end, either with SSH or tmux.

If you're wondering where shift+left/right can be used, see the kagi chart.

VDuchauffour commented 3 years ago

Ok so I was able to install tickrs with that command brew install tarkah/tickrs/tickrs after the tap command. It's strange because brew info tickrs is fine (tickrs version is set to 0.14.0 as stable). Maybe something related to the yml workflow file ? I get 0.14.1 as version with the same command that @miraclx