Skip to content

Commit

Permalink
chore: create install.sh
Browse files Browse the repository at this point in the history
script for installing the latest release from github
  • Loading branch information
silverhairs authored Jul 26, 2024
1 parent bfa1c9d commit f40e5be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
curl -L -s https://api.github.com/repos/silverhairs/lox/releases/latest \
| grep "browser_download_url.*glox-$(uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/macos/')-$(uname -m | sed 's/x86_64/amd64/')" \
| cut -d '"' -f 4 \
| wget -qi - \
&& chmod +x glox-$(uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/macos/')-$(uname -m | sed 's/x86_64/amd64/') \
&& mv glox-$(uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/macos/')-$(uname -m | sed 's/x86_64/amd64/') $PWD/glox

0 comments on commit f40e5be

Please sign in to comment.