File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "id" : " esp-idf" ,
3- "version" : " 1.0.3 " ,
3+ "version" : " 1.0.4 " ,
44 "name" : " ESP-IDF" ,
55 "description" : " Install ESP-IDF with selected version and chip targets" ,
66 "options" : {
Original file line number Diff line number Diff line change @@ -8,8 +8,16 @@ IDF_PY="${IDF_DIR}/tools/idf.py"
88
99echo " 📥 Installing ESP-IDF v${VERSION} for all targets"
1010
11+ # Install dependencies
12+ apt-get update && apt-get install -y \
13+ git wget flex bison gperf python3 python3-pip cmake ninja-build ccache \
14+ libffi-dev libssl-dev dfu-util libusb-1.0-0
15+
16+ export IDF_TOOLS_PATH=" ${IDF_DIR} /.espressif"
17+
1118# Check if already installed and version matches
1219if [ -x " $IDF_PY " ]; then
20+ " . ${IDF_DIR} /export.sh"
1321 INSTALLED_VERSION=$( " $IDF_PY " --version 2> /dev/null || echo " " )
1422 if [[ " $INSTALLED_VERSION " == * " v$VERSION " * ]]; then
1523 echo " ✔ ESP-IDF v${VERSION} already installed!"
@@ -20,11 +28,6 @@ if [ -x "$IDF_PY" ]; then
2028 fi
2129fi
2230
23- # Install dependencies
24- apt-get update && apt-get install -y \
25- git wget flex bison gperf python3 python3-pip cmake ninja-build ccache \
26- libffi-dev libssl-dev dfu-util libusb-1.0-0
27-
2831# Clean esp directory
2932rm -rf " ${IDF_DIR:? } /" * " ${IDF_DIR:? } " /.[! .]* 2> /dev/null || true
3033
You can’t perform that action at this time.
0 commit comments