Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
437 B

#!/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