cangrow.sh update arduino-cli to 1.0.4
This commit is contained in:
parent
ca4eb8cfd6
commit
d679d896b2
1 changed files with 5 additions and 5 deletions
|
@ -60,14 +60,14 @@ case $1 in
|
||||||
read
|
read
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: Installing Arduino IDE packages with apt, please enter sudo password:"
|
echo ":: Installing Arduino IDE packages with apt, please enter sudo password:"
|
||||||
sudo apt update
|
sudo apt update || exit 1
|
||||||
sudo apt install arduino python3 python3-serial wget curl xxd
|
sudo apt install arduino python3 python3-serial wget curl xxd || exit 1
|
||||||
echo ":: Ensure directory ${ACLI_DIR} is present"
|
echo ":: Ensure directory ${ACLI_DIR} is present"
|
||||||
test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR}
|
test -d ${ACLI_DIR} || mkdir -p ${ACLI_DIR}
|
||||||
echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it."
|
echo ":: Please ensure ${ACLI_DIR} is in your \$PATH, I wont do it."
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: Downloading arduino-cli 1.0.0 into ${ACLI_DIR}/"
|
echo ":: Downloading arduino-cli 1.0.0 into ${ACLI_DIR}/"
|
||||||
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.4/arduino-cli_1.0.4_Linux_64bit.tar.gz" | tar -C ${ACLI_DIR} -zxvf - arduino-cli
|
||||||
chmod +x ${ACLI}
|
chmod +x ${ACLI}
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: Installing ESP8266 and ESP32 cores for Arduino"
|
echo ":: Installing ESP8266 and ESP32 cores for Arduino"
|
||||||
|
@ -76,7 +76,7 @@ case $1 in
|
||||||
${ACLI_CMD} core install ${CORES[$core]}
|
${ACLI_CMD} core install ${CORES[$core]}
|
||||||
done
|
done
|
||||||
echo ":: Installing Arduino libraries"
|
echo ":: Installing Arduino libraries"
|
||||||
${ACLI_CMD} lib update-index
|
${ACLI_CMD} lib update-index || exit 1
|
||||||
for lib in ${!LIBS[@]}
|
for lib in ${!LIBS[@]}
|
||||||
do
|
do
|
||||||
echo " - ${LIBS[$lib]}"
|
echo " - ${LIBS[$lib]}"
|
||||||
|
@ -84,7 +84,7 @@ case $1 in
|
||||||
|
|
||||||
for lib in ${!LIBS[@]}
|
for lib in ${!LIBS[@]}
|
||||||
do
|
do
|
||||||
${ACLI_CMD} lib install "${LIBS[$lib]}"
|
${ACLI_CMD} lib install "${LIBS[$lib]}" || exit 1
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
echo ":: Setup build environment done! You can now build the firmware"
|
echo ":: Setup build environment done! You can now build the firmware"
|
||||||
|
|
Loading…
Reference in a new issue