forked from 1technophile/OpenMQTTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automate libraries deployment for arduino IDE (1technophile#488)
make the use of arduino IDE easier by automating the libraries deposit into github releases
- Loading branch information
1 parent
12bd11b
commit c0204de
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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 .. |