Skip to content

Commit 8b4c2c9

Browse files
committed
Fix download URL and json merger
1 parent ae1bfb5 commit 8b4c2c9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Diff for: tools/add_sdk_json.py

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
print('Tool Size : {0}.'.format(args.tool_size))
4040
print('Tool SHA256 : {0}.'.format(args.tool_sha))
4141

42-
idf_path = args.idf_path;
4342
arduino_json = args.arduino_json;
4443
tool_name = args.tool_name;
4544
tool_version = args.tool_version;

Diff for: tools/push-to-arduino.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ if [ $LIBS_HAS_COMMIT == "0" ]; then
108108
exit 1
109109
fi
110110
IDF_LIBS_COMMIT=`git rev-parse --verify HEAD`
111-
IDF_LIBS_DL_URL="https://github.com/espressif/esp32-arduino-libs/archive/$IDF_LIBS_COMMIT.zip"
111+
IDF_LIBS_DL_URL="https://codeload.github.com/espressif/esp32-arduino-libs/zip/$IDF_LIBS_COMMIT"
112112
# ToDo: this URL needs to get into Arduino's package.json
113113

114114
# Download the file
115115
filename="esp32-arduino-libs-$IDF_LIBS_COMMIT.zip"
116-
curl -s -O "$IDF_LIBS_DL_URL"
116+
curl -s -o "$filename" "$IDF_LIBS_DL_URL"
117117

118118
# Check if the download was successful
119119
if [ $? -ne 0 ]; then
@@ -150,10 +150,6 @@ if [ $LIBS_HAS_COMMIT == "0" ]; then
150150
fi
151151
fi
152152

153-
# https://github.com/espressif/esp32-arduino-libs/archive/refs/heads/[branch].zip
154-
# https://github.com/espressif/esp32-arduino-libs/archive/refs/tags/[tag].zip
155-
# https://github.com/espressif/esp32-arduino-libs/archive/[commit_hash].zip
156-
157153
if [ $AR_HAS_COMMIT == "0" ]; then
158154
cd "$AR_ROOT"
159155
# create or checkout the branch

0 commit comments

Comments
 (0)