mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 00:42:34 +01:00
add macOS support to install.sh (#361)
This commit is contained in:
parent
3c887e6ac3
commit
5ba7b53d06
22
install.sh
22
install.sh
@ -6,6 +6,28 @@ else
|
||||
SUDO=sudo
|
||||
fi
|
||||
|
||||
uname=`uname`
|
||||
if [[ "$uname" == "Darwin" ]]; then
|
||||
echo "Installing packages for macOS"
|
||||
|
||||
if ! command -v brew >/dev/null 2>&1; then
|
||||
# Install Homebrew
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || exit 1
|
||||
fi
|
||||
|
||||
# Install packages
|
||||
brew install md5sha1sum ninja gcc nanaian/brew/mips-linux-gnu-binutils || exit 1
|
||||
python3 -m pip install -U -r requirements.txt || exit 1
|
||||
|
||||
if [[ $1 == "--extra" ]]; then
|
||||
echo "Installing extra"
|
||||
python3 -m pip install -U -r requirements_extra.txt || exit 1
|
||||
fi
|
||||
|
||||
echo "Done"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Debian and derivatives (apt)
|
||||
if cat /etc/os-release | grep -E 'ID=debian|ID_LIKE=debian' &> /dev/null; then
|
||||
echo "Installing packages for Debian or derivative (apt)"
|
||||
|
Loading…
Reference in New Issue
Block a user