Skip to content

Commit

Permalink
chore: add script to download and install tmtop latest release (#6)
Browse files Browse the repository at this point in the history
Added a bash script to automate the download and installation of the latest release of tmtop for Linux AMD64. The script uses curl to fetch the latest release information from GitHub's API, extracts the download URL for the linux_amd64.tar.gz file, downloads it using wget, unpacks it, and then moves the executable to /usr/local/bin for easy execution.
  • Loading branch information
harveyTon authored Jan 18, 2024
1 parent 6827cce commit 37cc9f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ See how it looks like (on Sentinel chain, which is cosmos-sdk based chain, and N
Download the latest release from [the releases page](https://github.com/QuokkaStake/tmtop/releases/). After that, you should unzip it, and you are ready to go:

```sh
# auto
wget $(curl -s https://api.github.com/repos/QuokkaStake/tmtop/releases/latest | grep "browser_download_url.*linux_amd64.tar.gz" | cut -d '"' -f 4) -O tmtop_linux_amd64_latest_release.tar.gz && tar zxvf tmtop_linux_amd64_latest_release.tar.gz && cp tmtop /usr/local/bin/ && tmtop

# manual
wget <the link from the releases page>
tar <downloaded file>
./tmtop --config <path to config>
Expand Down

0 comments on commit 37cc9f2

Please sign in to comment.