gh-install icon indicating copy to clipboard operation
gh-install copied to clipboard

Non-interactive version?

Open indigoviolet opened this issue 2 years ago • 7 comments

Would be nice to have a non-interactive version for shell scripts

indigoviolet avatar Feb 18 '23 02:02 indigoviolet

By default:

  • choose the latest release
  • extract all executable files
  • install to $HOME/bin

iainelder avatar May 18 '23 10:05 iainelder

Hey! yeah, that would be nice, I'll take a look

@iainelder currently it saves to ~/.local/bin, but it can be overriden by setting the GH_BINPATH env. Might also think about moving all executable files.

redraw avatar May 23 '23 16:05 redraw

That install location is fine and even better that there is an environment variable to control it.

I've tried a few other install-from-Github tools such as Rishang's install-release and Jooola's gh-release-install. Each has its pros and cons.

I'd be happy to try what you come up with if you want to give us another option :-)

iainelder avatar May 23 '23 22:05 iainelder

Meanwhile, you could give a try to binenv, looks promising and more complete. It knows how to install a lot of popular projects, and I guess you can extend the $HOME/.config/binenv/distributions.yaml file if you need another one

redraw avatar May 26 '23 02:05 redraw

Nice, didn't know about binenv! This looks like a more general tool as well as mainly supporting binaries from Github Releases.

Reminds me of deb-get for Apt packages.

iainelder avatar May 26 '23 08:05 iainelder