Files
2026-08-04 19:31:29 +02:00

15 lines
470 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) - MIT License
set -euo pipefail
cd "$(dirname "$0")/.."
VENV_DIR=".venv-platformio"
if [ ! -d "$VENV_DIR" ]; then
echo "Creating local virtualenv in $VENV_DIR ..."
python3 -m venv "$VENV_DIR"
"$VENV_DIR/bin/pip" install --upgrade pip
"$VENV_DIR/bin/pip" install platformio
fi
echo "Running build (no upload) ..."
"$VENV_DIR/bin/pio" run
echo "Build finished successfully."