Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better installation methods #32

Closed
1 of 3 tasks
elldritch opened this issue Feb 20, 2018 · 3 comments
Closed
1 of 3 tasks

Better installation methods #32

elldritch opened this issue Feb 20, 2018 · 3 comments

Comments

@elldritch
Copy link
Member

elldritch commented Feb 20, 2018

Some ideas:

  • Install script for curl | bash or other one-liner. We can probably take the script from jpillora/installer.
  • npm install -g @fossa/cli
  • brew install @fossa/cli

Some references:

@xizhao
Copy link
Contributor

xizhao commented Mar 2, 2018

Currently, one liner using jpillora/installer

curl https://i.jpillora.com/fossas/fossa-cli! | bash && mv /usr/local/bin/fossa-cli /usr/local/bin/fossa

xizhao added a commit that referenced this issue Mar 2, 2018
@elldritch
Copy link
Member Author

elldritch commented Mar 9, 2018

We have an installer script now, but there are some improvements we can make:

  • Automatically pull the latest stable version instead of a hardcoded version (probably by querying the Releases API)
  • Figure out a way to validate the checksum on Mac OS (apparently sha256sum is not installed by default?)
  • Install to a location other than /usr/bin to avoid requiring sudo permissions for most users (maybe install to .fossa, append it to the $PATH, and provide a .bashrc EXPORT PATH=$PATH:$HOME/.fossa line?)

@elldritch
Copy link
Member Author

Our current installer satisfies these requirements pretty well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants