forked from AndroidDumps/dumpyara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·17 lines (15 loc) · 968 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·17 lines (15 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
if [[ "$(command -v apt)" != "" ]]; then
sudo apt install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract device-tree-compiler liblzma-dev python3-pip brotli liblz4-tool axel gawk aria2 detox cpio rename liblz4-dev -y
elif [[ "$(command -v dnf)" != "" ]]; then
sudo dnf install -y unace unrar zip unzip sharutils uudeview arj cabextract file-roller dtc python3-pip brotli axel aria2 detox cpio lz4
elif [[ "$(command -v pacman)" != "" ]]; then
sudo pacman -Sy --noconfirm unace unrar zip unzip p7zip sharutils uudeview arj cabextract file-roller dtc python-pip brotli axel gawk aria2 detox cpio lz4
fi
PIP=pip3
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install protobuf xz brotli lz4 aria2 detox coreutils p7zip gawk
PIP=pip
fi
sudo "$PIP" install backports.lzma extract-dtb protobuf pycrypto docopt zstandard twrpdtgen