diff --git a/code/build b/code/build new file mode 100755 index 00000000..375ed666 --- /dev/null +++ b/code/build @@ -0,0 +1,17 @@ +#!/bin/bash + +# Environments to build +ENVIRONMENTS="sonoff-debug s20-debug" + +# Get current version +version=`cat src/version.h | grep APP_VERSION | awk '{print $3}' | sed 's/"//g'` +echo $version + +# Create output folder +mkdir -p firmware + +# Build all the required firmwares +for environment in $ENVIRONMENTS; do + platformio run -vv -e $environment + mv .pioenvs/$environment/firmware.bin firmware/espurna-$environment-$version.bin +done diff --git a/code/data/index.html b/code/data/index.html index 1c40ae68..4591959a 100644 --- a/code/data/index.html +++ b/code/data/index.html @@ -159,10 +159,10 @@