forked from senolars/ErfanGSIs-VelanGSIs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·23 lines (20 loc) · 1011 Bytes
/
setup.sh
File metadata and controls
executable file
·23 lines (20 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
distro=$(awk -F= '$1 == "ID" {print $2}' /etc/os-release)
if [[ "$distro" == "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
else
echo " - Starting the installation of packages"
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 rename python3-setuptools -y
fi
pip install backports.lzma protobuf pycrypto
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "-> Darwin Detected".
echo " - Starting the installation of packages"
brew install protobuf xz brotli lz4 aria2
fi
pip install backports.lzma protobuf pycrypto google
pip3 install backports.lzma protobuf pycrypto google
sudo chmod -R +x *
sudo chmod -R 0777 *