Skip to content

Commit

Permalink
[v2.0] Added Vcc-binaries to deploy process letscontrolit#933 (letsco…
Browse files Browse the repository at this point in the history
…ntrolit#935)

PR for the V2.0 branch to add the VCC binaries to the deploy process.
  • Loading branch information
TD-er authored and psy0rz committed Feb 25, 2018
1 parent 67c8477 commit 4ca5ef3
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions before_deploy
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
#!/bin/bash

VERSION=$(git describe)
echo "Creating release archives for $VERSION ..."
#binaries

#ESP_Easy_v[version]-[build type]-dev[dev number]-ESP[chip type]-[size].bin
#Naming convention:
# ESP_Easy_[github version]_[plugin set]_[chip type]_[flash memory].bin


for ENV in \
normal_ESP8266_1024 \
normal_ESP8266_4096 \
normal_ESP8285_1024 \
normal_ESP8266_1024_DOUT \
test_ESP8266_1024\
test_ESP8266_4096\
test_ESP8266_4096_VCC\
test_ESP8285_1024\
dev_ESP8266_1024\
dev_ESP8266_4096\
dev_ESP8285_1024\
dev_ESP8266PUYA_1024\
dev_ESP8266PUYA_1024_VCC;\
do
echo
echo "### Deploying environment $ENV for version $VERSION"
BIN=.pioenvs/$ENV/firmware.bin
cp $BIN dist/"ESP_Easy_$VERSION""_$ENV.bin"
done

#cp .pioenvs/mini_512/firmware.bin dist/"ESPEasy_$VERSION""_mini_512.bin"

cp .pioenvs/normal_ESP8266_1024/firmware.bin dist/"ESP_Easy_$VERSION""_normal_ESP8266_1024.bin"
cp .pioenvs/normal_ESP8266_4096/firmware.bin dist/"ESP_Easy_$VERSION""_normal_ESP8266_4096.bin"
cp .pioenvs/normal_ESP8285_1024/firmware.bin dist/"ESP_Easy_$VERSION""_normal_ESP8285_1024.bin"

cp .pioenvs/test_ESP8266_1024/firmware.bin dist/"ESP_Easy_$VERSION""_test_ESP8266_1024.bin"
cp .pioenvs/test_ESP8266_4096/firmware.bin dist/"ESP_Easy_$VERSION""_test_ESP8266_4096.bin"
cp .pioenvs/test_ESP8285_1024/firmware.bin dist/"ESP_Easy_$VERSION""_test_ESP8285_1024.bin"

cp .pioenvs/dev_ESP8266_1024/firmware.bin dist/"ESP_Easy_$VERSION""_dev_ESP8266_1024.bin"
cp .pioenvs/dev_ESP8266_4096/firmware.bin dist/"ESP_Easy_$VERSION""_dev_ESP8266_4096.bin"
cp .pioenvs/dev_ESP8285_1024/firmware.bin dist/"ESP_Easy_$VERSION""_dev_ESP8285_1024.bin"

cp .pioenvs/dev_ESP8266PUYA_1024/firmware.bin dist/"ESP_Easy_$VERSION""_dev_ESP8266PUYA_1024.bin"

#create a source structure that is the same as the original ESPEasy project (and works with the howto on the wiki)
rm -rf dist/Source 2>/dev/null
Expand All @@ -30,4 +36,7 @@ cp -r src dist/Source/
cp platformio.ini dist/Source/

cd dist

echo
echo "### Creating zip archive"
zip ../ESPEasy_$VERSION.zip -r .

0 comments on commit 4ca5ef3

Please sign in to comment.