forked from msdianforever/ErfanGSIs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·17 lines (16 loc) · 850 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
distro=$(awk -F= '$1 == "ID" {print $2}' /etc/os-release)
id_like=$(awk -F= '$1 == "ID_LIKE" {print $2}' /etc/os-release)
if [[ "$distro" == "arch" || "$id_like" == "arch" ]]; then
echo "Arch Linux Detected"
sudo pacman -S --needed unace unrar zip unzip p7zip sharutils uudeview arj cabextract file-roller dtc xz python-pip brotli lz4 gawk libmpack aria2
#aur=rar
else
sudo apt install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller device-tree-compiler liblzma-dev python-pip brotli liblz4-tool gawk aria2
fi
pip install backports.lzma protobuf pycrypto
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install protobuf xz brotli lz4 aria2
pip install backports.lzma protobuf pycrypto
fi