From 798341a7855a44513f1ab4f18430a243fd8f41d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 26 Oct 2017 12:18:19 +0200 Subject: [PATCH] Save firmware images in subfolders --- code/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/build.sh b/code/build.sh index 7dec02e2..2dcc0fb4 100755 --- a/code/build.sh +++ b/code/build.sh @@ -42,9 +42,10 @@ node node_modules/gulp/bin/gulp.js || exit # Build all the required firmwares echo "--------------------------------------------------------------" echo "Building firmware images..." +mkdir -p firmware/espurna-$version for environment in $environments; do echo "* espurna-$version-$environment.bin" platformio run -s -e $environment || exit - mv .pioenvs/$environment/firmware.bin firmware/espurna-$version-$environment.bin + mv .pioenvs/$environment/firmware.bin firmware/espurna-$version/espurna-$version-$environment.bin done echo "--------------------------------------------------------------"