initial version
This commit is contained in:
17
bin/build
Executable file
17
bin/build
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
if [ ! -d "Compiled" ] ; then mkdir Compiled ; fi
|
||||
|
||||
if [ "${DRONE_TAG}" ] ; then
|
||||
NAME=${DRONE_TAG}
|
||||
elif [ "${DRONE_BRANCH}" ] ; then
|
||||
NAME=${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}
|
||||
else
|
||||
NAME=`git symbolic-ref --short HEAD`
|
||||
fi
|
||||
|
||||
echo "#define VERSION \"${NAME}\"" >> compile_flags.h
|
||||
arduino-cli compile $LIBS -e -b esp32:esp32:esp32 || exit 1
|
||||
mv build/esp32.esp32.esp32/*.ino.bin Compiled/${NAME}.bin
|
||||
mv build/esp32.esp32.esp32/*.ino.elf Compiled/${NAME}.elf
|
||||
mv build/esp32.esp32.esp32/*.ino.partitions.bin Compiled/${NAME}.partitions.bin
|
||||
bin/flash Compiled/${NAME}.bin
|
Reference in New Issue
Block a user