mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
13 lines
214 B
Bash
Executable File
13 lines
214 B
Bash
Executable File
#!/bin/sh
|
|
|
|
env="esp8266"
|
|
build_dir=".pio/build/$env/"
|
|
|
|
if [ ! -d $build_dir ];then
|
|
echo "No build directory"
|
|
exit 1
|
|
fi
|
|
|
|
chmod +x scripts/$env/flash.sh
|
|
zip -j $env.zip $build_dir/*.bin scripts/$env/flash.sh
|