Update install.sh
Working install script
This commit is contained in:
parent
01053ffad3
commit
825c9e4a82
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
INSTALL_DIR="fup_anamometer"
|
INSTALL_DIR="fup_anamometer"
|
||||||
|
|
||||||
|
xcode-select --install
|
||||||
|
|
||||||
mkdir $HOME/$INSTALL_DIR
|
mkdir $HOME/$INSTALL_DIR
|
||||||
cp fup-anemometer-user.py $HOME/$INSTALL_DIR/fup-anemometer.py
|
cp fup-anemometer-user.py $HOME/$INSTALL_DIR/fup-anemometer.py
|
||||||
chmod +x $HOME/$INSTALL_DIR/fup-anemometer.py
|
chmod +x $HOME/$INSTALL_DIR/fup-anemometer.py
|
||||||
@ -12,8 +14,12 @@ then
|
|||||||
fi
|
fi
|
||||||
sed -i -e "s%XXXX%$HOME%g" com.fup_anemometer.plist
|
sed -i -e "s%XXXX%$HOME%g" com.fup_anemometer.plist
|
||||||
cp com.fup_anemometer.plist $HOME/Library/LaunchAgents/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
|
python3 -m venv $HOME/$INSTALL_DIR
|
||||||
# copy python file to venv
|
# copy python file to venv
|
||||||
cd $HOME/$INSTALL_DIR
|
cd $HOME/$INSTALL_DIR
|
||||||
source $HOME/$INSTALL_DIR/bin/activate
|
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"
|
Loading…
Reference in New Issue
Block a user