-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·16 lines (15 loc) · 936 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·16 lines (15 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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
#aur=rar
else
sudo apt install unace unrar zip unzip p7zip-full simg2img p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller device-tree-compiler liblzma-dev python-pip brotli liblz4-tool gawk aria2 unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller rename liblzma-dev python-pip brotli -y
fi
pip install backports.lzma protobuf pycrypto bsdiff4 docopt
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install protobuf xz brotli lz4 aria2
pip install backports.lzma protobuf pycrypto bsdiff4 docopt
fi