forked from WouterJD/FortiusANT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFortiusAntInstall.sh
executable file
·60 lines (54 loc) · 2.57 KB
/
FortiusAntInstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
if [[ $1 == "n" ]]; then
YES="-y"
else
YES=""
fi
sudo apt-get $YES update
sudo apt-get $YES upgrade
#git clone https://github.com/WouterJD/FortiusANT.git
# ----------------------------------------------------------
# Download (clone) FortuisAnt
# ----------------------------------------------------------
if [ -d "$HOME/FortiusANT" ] ; then
echo "FortiusANT already present"
else
#git clone https://github.com/WouterJD/FortiusANT.git
git clone -b Wayland https://github.com/decodeais/FortiusANT.git $HOME/FortiusANT
fi
cd $HOME/FortiusANT/raspberry
echo "##########################################################################"
echo " Virtual enwiremont wir eingerichtet "
echo "##########################################################################"
which python
python3.11 -m venv FortAntEnv
source FortAntEnv/bin/activate
which python
./1_UpgradeSystem.sh "$@"
echo "##########################################################################"
echo " 2_InstallPackagesBLE.sh "
echo "##########################################################################"
./2_InstallPackagesBLE.sh "$@"
#./3_InstallBless_2022Q2_only.sh "$@"
echo "##########################################################################"
echo " 3_InstallMissingPackages.sh "
echo "##########################################################################"
./3_InstallMissingPackages.sh "$@"
echo "##########################################################################"
echo " 4_InstallWxPython.sh "
echo "##########################################################################"
./4_InstallWxPython.sh "$@"
echo "##########################################################################"
echo " 5_GetFortiusAnt_Dependencies.sh "
echo "##########################################################################"
./5_GetFortiusAnt_Dependencies.sh "$@"
#./6_SetupNodeJs_FortiusAnt.sh "$@"
#./7_RunFortiusAntAtStartup.sh "$@"
#./8_Share_UserPi.sh
echo "##########################################################################"
echo " 9_GrantAccessToBluetoothForBless.sh "
echo "##########################################################################"
./9_GrantAccessToBluetoothForBless.sh "$@"
cat FortiusAnt.desktop.org | sed "s%__HOME__%$HOME%" > FortiusAnt.desktop
sudo cp $HOME/FortiusANT/raspberry/FortiusAnt.desktop /usr/share/applications/FortiusAnt.desktop
./9_GrantAccessToUSB_withReboot.sh "$@"