Skip to content

Commit e306c2f

Browse files
authored
Update archive-build.sh
1 parent a735a3c commit e306c2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/archive-build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ cp -Rf tools/esp32-arduino-libs arduino-esp32/tools/
3131
cp ../package.json arduino-esp32/package.json
3232
cp ../core_version.h arduino-esp32/cores/esp32/core_version.h
3333

34-
# Replace FRAMEWORK_LIBS_DIR from extern installed package to folder stored in framework
35-
gawk -i inplace -v cuv1="platform.get_package_dir(\"framework-arduinoespressif32-libs\")" -v cuv2="join(FRAMEWORK_DIR, \"tools\", \"esp32-arduino-libs\")" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build.py"
34+
# Replace FRAMEWORK_LIBS_DIR path from extern installed package to stored in framework
35+
org="platform.get_package_dir(\"framework-arduinoespressif32-libs\")"
36+
repl="join(FRAMEWORK_DIR, \"tools\", \"esp32-arduino-libs\")"
37+
echo "Replace FRAMEWORK_LIBS_DIR=$org with FRAMEWORK_LIBS_DIR=$repl"
38+
gawk -i inplace -v cuv1=$org -v cuv2=$repl '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build.py"
3639

3740
mv arduino-esp32/ framework-arduinoespressif32/
3841

0 commit comments

Comments
 (0)