Skip to content
Snippets Groups Projects
Commit f30387bd authored by Ethan Robert's avatar Ethan Robert
Browse files

Finished UNIX install script

parent aa4ea034
Branches
No related tags found
No related merge requests found
Pipeline #60090 failed
#!/bin/bash
echo "To install grapp, you first need to authenticate as root"
sudo test
echo "Installing Graphviz..."
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
brew install graphviz wget
elif [[ -f /etc/debian_version ]]; then
# Debian/Ubuntu
sudo apt update
sudo apt install -y graphviz wget unzip
elif [[ -f /etc/arch-release ]]; then
# Arch
sudo pacman -Syu --noconfirm graphviz wget unzip
elif [[ -f /etc/fedora-release ]]; then
# Fedora
sudo dnf install -y graphviz wget unzip
else
echo "Unsupported OS"
exit 1
fi
echo "Getting the latest version of Grapp..."
wget https://gitlab.univ-lille.fr/iovka.boneva/grapp/-/raw/master/binaries/Grapp.zip?ref_type=heads&inline=false
echo "Extracting Grapp.zip..."
unzip Grapp.zip
sudo mv ./Grapp /opt/grapp
echo "Configuring installation..."
if [[ "$SHELL" == *"zsh" ]]; then
# ZSH
echo "export PATH='/opt/grapp/bin:$PATH" >> ~/.zshrc
else if [[ "$SHELL" == *"bash" ]]; then
# Bash
echo "export PATH='/opt/grapp/bin:$PATH" >> ~/.bashrc
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment