hypriot/flash

maintain a homebrew package for flash

onedr0p opened this issue Β· 10 comments

The install instructions are pretty easy, but it would be nice to have a homebrew package for updating.

If it's helpful, this is how it is done for kubetail which is also a bash script

https://github.com/johanhaleby/kubetail

Instructions state: brew tap johanhaleby/kubetail && brew install kubetail

Looks like we would need to add a hypriot/homebrew-flash repo like the following...

https://github.com/johanhaleby/homebrew-kubetail

Is this something the maintainers are interested in?

Thanks for the suggestion.
There is a pull request Homebrew/homebrew-core#52503 which you can follow.

Unfortunately, getting the pull request (or rather the required test) to be in an acceptable form turned out to be a bit tricky. Now it should be okay, but it might take another bit for the maintainers to get back to it… πŸ™‚

No worries, the homebrew maintainers are super stingy on most everything. There's always the way I listed above if they don't approve it. :)

It just landed, thanks @witsch !!! πŸŽ‰πŸŽ‰ I couldn't believe this was possible πŸ˜…

brew-install-flash

You're welcome, I'm glad I could contribute a little bit… and hey, now it's only one step to get a new Pi running! Well, almost… πŸ™‚

Ping @witsch I don't remember if the homebrew flash formula gets updated automatically. I just released version 2.7.1 https://github.com/hypriot/flash/releases/tag/2.7.1 πŸ€—

Pong πŸ™‚

They're not, but updating has become very convenient by now. So in this case β€” and this is mostly meant as a 'note to self' β€” all that's needed to create Homebrew/homebrew-core#55634 was:

$ brew bump-formula-pr --url https://github.com/hypriot/flash/releases/download/2.7.1/flash --sha256 …

Thank you @witsch !
This already creates the PR in homebrew-core?

Do you know if I can run this on Linux here in our pipeline? -> https://github.com/hypriot/flash/blob/master/.circleci/config.yml#L55

Yes, it does. I'm not sure how easily it integrates in CI, though. It needs your Github credentials, of course, but then again perhaps all you need is a token in the environment? Would you let me know if you get it to work, please? πŸ™‚