add more library dependencies to setup

This commit is contained in:
Marcus 2024-10-17 15:56:13 +02:00
parent a330268960
commit 989fefd1e2

View file

@ -42,7 +42,20 @@ test -z $1 && help
case $1 in case $1 in
s|setup) s|setup)
ACLI_DIR="$(dirname $ACLI)" ACLI_DIR="$(dirname $ACLI)"
declare -a LIBS=( "Adafruit SSD1306" "Adafruit BME280 Library" "ArduinoJson" "NTPClient" "Time" "ESP Async WebServer" ) declare -a CORES=(
"esp8266:esp8266@3.1.2"
"esp32:esp32@3.0.5"
)
declare -a LIBS=(
"Adafruit SSD1306@2.5.12"
"Adafruit BME280 Library@2.2.4"
"ArduinoJson@7.2.0"
"NTPClient@3.2.1"
"Time@1.6.1"
"ESP Async WebServer@3.3.17"
"ESPAsyncTCP@1.2.4"
"AsyncTCP@1.1.4"
)
echo ":: Setting up build environment for CanGrow Firmware." echo ":: Setting up build environment for CanGrow Firmware."
echo " This will download the binary for arduino-cli and install" echo " This will download the binary for arduino-cli and install"
echo " the packages for the arduino ide from the debian repository." echo " the packages for the arduino ide from the debian repository."
@ -62,8 +75,11 @@ case $1 in
wget -O - "https://github.com/arduino/arduino-cli/releases/download/v1.0.0/arduino-cli_1.0.0_Linux_64bit.tar.gz" | tar -C ${ACLI_DIR} -zxvf - arduino-cli wget -O - "https://github.com/arduino/arduino-cli/releases/download/v1.0.0/arduino-cli_1.0.0_Linux_64bit.tar.gz" | tar -C ${ACLI_DIR} -zxvf - arduino-cli
chmod +x ${ACLI} chmod +x ${ACLI}
echo "" echo ""
echo ":: Installing ESP8266 core for Arduino" echo ":: Installing ESP8266 and ESP32 cores for Arduino"
${ACLI_CMD} core install esp8266:esp8266 for core in ${!CORES[@]}
do
${ACLI_CMD} core install ${CORES[$core]}
done
echo ":: Installing Arduino libraries" echo ":: Installing Arduino libraries"
for lib in ${!LIBS[@]} for lib in ${!LIBS[@]}
do do