From ab46bee38be44a33df7c3440da3ab7abd407f90e Mon Sep 17 00:00:00 2001 From: kha7iq Date: Mon, 13 Dec 2021 11:58:17 +0800 Subject: [PATCH] docs: update install instructions --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4c49dd..d6cbe75 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ platforms. brew install kha7iq/tap/pingme ``` + +## Shell Script +By default pingme is going to be installed at `/usr/bin/` sudo is requried for this operation. + +If you would like to provide a custome install path you can do so by prviding it as input to scipt. i.e `./install.sh $HOME/bin` +```bash +curl -s https://raw.githubusercontent.com/kha7iq/pingme/master/install.sh | sudo sh +``` + ## Linux * AUR @@ -89,15 +98,20 @@ yay -S pingme-bin ``` -* Binary +## Manual ```bash +# Chose desired version, architecture & target os export PINGME_VERSION="0.2.4" -wget -q https://github.com/kha7iq/pingme/releases/download/v${PINGME_VERSION}/pingme_Linux_x86_64.tar.gz && \ -tar -xf pingme_Linux_x86_64.tar.gz && \ +export ARCH="x86_64" +export OS="Linux" +wget -q https://github.com/kha7iq/pingme/releases/download/v${PINGME_VERSION}/pingme_${OS}_${ARCH}.tar.gz && \ +tar -xf pingme_${OS}_${ARCH}.tar.gz && \ chmod +x pingme && \ sudo mv pingme /usr/local/bin/pingme ``` + + ### Windows ```powershell