|
| 1 | +# Help Needed ! |
| 2 | + |
| 3 | +See: https://github.com/espressif/arduino-esp32/discussions/10039 |
| 4 | + |
| 5 | +Add these in an existing project: |
| 6 | +``` |
| 7 | +[env:pioarduino-esp32dev] |
| 8 | +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip |
| 9 | +board = esp32dev |
| 10 | +
|
| 11 | +[env:pioarduino-esp32-s2] |
| 12 | +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip |
| 13 | +board = esp32-s2-saola-1 |
| 14 | +
|
| 15 | +[env:pioarduino-esp32-s3] |
| 16 | +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip |
| 17 | +board = esp32-s3-devkitc-1 |
| 18 | +
|
| 19 | +[env:pioarduino-esp32-c3] |
| 20 | +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip |
| 21 | +board = esp32-c3-devkitc-02 |
| 22 | +
|
| 23 | +[env:pioarduino-esp32-c6] |
| 24 | +platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip |
| 25 | +board = esp32-c6-devkitc-1 |
| 26 | +``` |
| 27 | + |
| 28 | +Then run: |
| 29 | + |
| 30 | +```bash |
| 31 | +# cleanup existing packages |
| 32 | +rm ~/.platformio/packages |
| 33 | +# build |
| 34 | +for e in `pio project config --json-output | jq -cr '.[][0] | select(startswith("env:pioarduino-")) | .[4:]'`; do pio run -e $e; done; |
| 35 | +# compress |
| 36 | +cd ~/.platformio/packages |
| 37 | +ls | grep -v framework | grep -v zip | xargs -n1 -I {} zip -s 100m -r {}.zip {} |
| 38 | +# double check your architecture: |
| 39 | +uname -a |
| 40 | +``` |
| 41 | + |
| 42 | +Fork this repo. |
| 43 | + |
| 44 | +Then move all the generated zip and zxx files inside your fork, in the right folder. |
| 45 | +Push, PR, :+1: |
| 46 | + |
| 47 | +As an example, this accounts for about 750Mb for macos_arm64. |
0 commit comments