cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.85k stars 178 forks source link

Add instructions for installing using install script #165

Closed praveenperera closed 3 years ago

praveenperera commented 3 years ago

If you enable GitHub pages for this repo, you can replace

https://raw.githubusercontent.com/cantino/mcfly/master/ci/install.sh with

https://cantino.github.io/mcfly/install.sh

cantino commented 3 years ago

@praveenperera, the install script defaults to musl on linux, but I've previously used x86_64-unknown-linux-gnu (e.g., in my homebrew for linux setup). What is the difference?

praveenperera commented 3 years ago

@cantino musl builds use statically linked c libraries where as gnu builds use the dynamically linked ones. As a result the musl builds are more universally compatible with different systems

cantino commented 3 years ago

Good to know, thank you!

cantino commented 3 years ago

@praveenperera, I get this when I run it on Linux:

curl -LSfs https://raw.githubusercontent.com/cantino/mcfly/master/ci/install.sh | sh -s -- --git cantino/mcfly
install.sh: GitHub repository: https://github.com/cantino/mcfly
install.sh: Crate: mcfly
install.sh: Tag: latest (v0.5.7)
install.sh: Target: x86_64-unknown-linux-musl
install.sh: Downloading: https://github.com/cantino/mcfly/releases/download/v0.5.7/mcfly-v0.5.7-x86_64-unknown-linux-musl.tar.gz
install.sh: Installing to: /usr/local/bin
cp: cannot create regular file '/usr/local/bin/mcfly': Permission denied
chmod: cannot access '/usr/local/bin/mcfly': No such file or directory