Skip to content

Commit 46eefae

Browse files
authored
Update archive-build.sh
1 parent d03e547 commit 46eefae

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tools/archive-build.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pio_zip_archive_path="dist/framework-arduinoespressif32-$TARGET-$idf_version_str
1010
mkdir -p dist && rm -rf "$archive_path" "$build_archive_path"
1111

1212
cd out
13-
echo "Creating PlatformIO Tasmota framework-arduinoespressif32"
13+
echo "Copying built MCU libs to framework"
1414
mkdir -p arduino-esp32/cores/esp32
1515
mkdir -p arduino-esp32/tools/partitions
1616
cp -rf ../components/arduino/tools arduino-esp32
@@ -61,8 +61,11 @@ mv arduino-esp32/ framework-arduinoespressif32/
6161
cd framework-arduinoespressif32/libraries
6262
rm -rf **/examples
6363
cd ../tools/esp32-arduino-libs
64-
# rm -rf **/flags
64+
rm -rf **/flags
6565
cd ../../../
66-
# If the framework is needed as tar.gz uncomment next line
67-
# tar --exclude=.* -zcf ../$pio_archive_path framework-arduinoespressif32/
68-
7z a -mx=9 -tzip -xr'!.*' ../$pio_zip_archive_path framework-arduinoespressif32/
66+
67+
68+
if [[ -z "$GITHUB_ACTIONS" ]]; then
69+
echo "Creating PlatformIO Tasmota framework-arduinoespressif32"
70+
7z a -mx=9 -tzip -xr'!.*' ../$pio_zip_archive_path framework-arduinoespressif32/
71+
fi

0 commit comments

Comments
 (0)