diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..f68e1b7 --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Downloading the necessary files. +wget https://github.com/AllanCapistrano/gbc/releases/download/v1.0.0/gbc +wget https://raw.githubusercontent.com/AllanCapistrano/gbc/main/config/gbc.conf + +# Creating the config directory for gbc. +mkdir $HOME/.config/gbc + +# Moving the CLI and settings file. +sudo mv gbc /usr/bin +mv gbc.conf $HOME/.config/gbc + +# Giving permission to run the CLI. +sudo chmod +x /usr/bin/gbc + +gbc --help \ No newline at end of file diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh new file mode 100755 index 0000000..baeee81 --- /dev/null +++ b/scripts/uninstall.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Removing CLI +sudo rm /usr/bin/gbc +# Removing config directory +rm -rf $HOME/.config/gbc \ No newline at end of file