From f5595b070915e4f7af0b4d4e09060af7e5ffbe7c Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 7 Dec 2022 18:38:58 -0500 Subject: [PATCH] Update pyenv2.sh --- misc/pyenv2.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/misc/pyenv2.sh b/misc/pyenv2.sh index 77a3d610..87349fde 100644 --- a/misc/pyenv2.sh +++ b/misc/pyenv2.sh @@ -73,3 +73,21 @@ systemctl enable --now esphomedashboard &>/dev/null echo "Installed ESPHome Beta" echo -e " Go to $(hostname -I | awk '{print $1}'):6052" fi + +read -r -p "Would you like to install Matter-Server? " prompt +if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then + MTR="Y" +fi +if [[ $MTR == "Y" ]]; then +echo "Installing Matter Server" +apt-get install -y \ +libcairo2-dev \ +libjpeg62-turbo-dev \ +libgirepository1.0-dev \ +libpango1.0-dev \ +libgif-dev \ +g++ &>/dev/null +python3 -m pip install wheel +pip3 install --upgrade pip +pip install python-matter-server[server] +echo "Installed Matter Server"