Update install.sh

Working install script
This commit is contained in:
Julien Lazarewicz 2024-06-26 12:52:04 +02:00
parent 01053ffad3
commit 825c9e4a82

View File

@ -1,6 +1,8 @@
#!/bin/sh
INSTALL_DIR="fup_anamometer"
xcode-select --install
mkdir $HOME/$INSTALL_DIR
cp fup-anemometer-user.py $HOME/$INSTALL_DIR/fup-anemometer.py
chmod +x $HOME/$INSTALL_DIR/fup-anemometer.py
@ -12,8 +14,12 @@ then
fi
sed -i -e "s%XXXX%$HOME%g" com.fup_anemometer.plist
cp com.fup_anemometer.plist $HOME/Library/LaunchAgents/com.fup_anemometer.plist
rm com.fup_anemometer.plist
cp com.fup_anemometer.plist-e com.fup_anemometer.plist
python3 -m venv $HOME/$INSTALL_DIR
# copy python file to venv
cd $HOME/$INSTALL_DIR
source $HOME/$INSTALL_DIR/bin/activate
pip install python-osc
pip install python-osc
cd $HOME
echo "TO FINISH THE INSTALLATION PLEASE LOGOFF AND LOGON"