diff --git a/README.md b/README.md index 8964ae6..c3527d1 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,13 @@ __xchelper__ is a tool for iOS developers to automate tedious tasks like run, te ## Installation -xchelper can be installed from homebrew via -```bash -brew install xchelper +| Method | Command | +|:----------|:--------------------------------------------------------------------------------------------------| +| **curl** | `sh -c "$(curl -fsSL https://raw.githubusercontent.com/BlueIntent/xchelper/main/scripts/install.sh)"` | +| **wget** | `sh -c "$(wget -O- https://raw.githubusercontent.com/BlueIntent/xchelper/main/scripts/install.sh)"` | +``` diff +- brew install xchelper ++ GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars) ``` ## Usage diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 0000000..aeb1a5d --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +upstream_github_url="https://github.com/BlueIntent/xchelper" + +PWD_DIR=$PWD +OUTPUT_DIR=$(mktemp -d -t xchelper-release) +echo $OUTPUT_DIR +git clone $upstream_github_url $OUTPUT_DIR +cd $OUTPUT_DIR && make install && cd $PWD_DIR +rsync -r $OUTPUT_DIR/build/package/* /usr/local/bin +rm -rf $OUTPUT_DIR +echo "Successfully installed" +xchelper --version \ No newline at end of file diff --git a/scripts/make_release.sh b/scripts/make_release.sh index 58a8ae1..5cba0f3 100644 --- a/scripts/make_release.sh +++ b/scripts/make_release.sh @@ -1,7 +1,5 @@ #!/bin/bash -# OUTPUT_DIR=$(mktemp -d -t xchelper-release) - ROOT_PATH=$(pwd) BUILD_PATH=$ROOT_PATH/build PACKAGE_PATH=$BUILD_PATH/package diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh new file mode 100644 index 0000000..9a93e68 --- /dev/null +++ b/scripts/uninstall.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +BIN_PATH=/usr/local/bin + +if [ $(ls $BIN_PATH | grep -c xchelper) -gt 0 ]; then + rm $BIN_PATH/xchelper +fi + +echo "Thanks for trying out xchelper. It's been uninstalled." \ No newline at end of file