mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
14 lines
311 B
Bash
Executable File
14 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
|
|
env="esp32c3"
|
|
build_dir=".pio/build/$env/"
|
|
|
|
if [ ! -d $build_dir ];then
|
|
echo "No build directory"
|
|
exit 1
|
|
fi
|
|
|
|
cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin $build_dir
|
|
chmod +x scripts/$env/flash.sh
|
|
zip -j $env.zip $build_dir/*.bin scripts/$env/flash.sh
|