Update setup.sh

This commit is contained in:
Chris Frankland-Wright 2025-07-07 19:10:15 +01:00 committed by GitHub
parent 7fcf68eb5d
commit 4f85fc8cf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,22 @@ sudo apt update && sudo apt upgrade -y
# ---------------------------------------------------------
echo "Step 2: Installing required tools..."
sudo apt install -y git curl python3 python3-pip build-essential cmake \
teensy-loader-cli python3-serial
python3-serial
# ---------------------------------------------------------
# Step 2.5: Install teensy-loader-cli from source
# ---------------------------------------------------------
echo "Installing teensy-loader-cli manually from source..."
cd "$HOME"
if [ ! -d teensy_loader_cli ]; then
git clone https://github.com/PaulStoffregen/teensy_loader_cli.git
fi
cd teensy_loader_cli
make
sudo cp teensy_loader_cli /usr/local/bin/teensy-loader-cli
echo "Verifying teensy-loader-cli..."
teensy-loader-cli --version || echo "⚠️ teensy-loader-cli failed to install properly"
# ---------------------------------------------------------
# Step 3: Install Arduino CLI manually (latest version)