mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-03 05:54:23 +01:00
make the use of arduino IDE easier by automating the libraries deposit into github releases
15 lines
323 B
Bash
15 lines
323 B
Bash
echo "renaming bin files with the board name"
|
|
rename -v 's:/:-:g' .pio/build/*/*.bin
|
|
mkdir toDeploy
|
|
rename 's/.pio-build-//' .*.bin
|
|
cd .pio/libdeps
|
|
echo "zipping libraries per board"
|
|
for i in */; do zip -r "${i%/}-libraries.zip" "$i"; done
|
|
ls -la
|
|
mv *.zip ../../toDeploy
|
|
cd ../..
|
|
mv *.bin toDeploy
|
|
cd toDeploy
|
|
ls -la
|
|
cd ..
|