Compare commits
3 Commits
f73d45404f
...
bcf7625285
Author | SHA1 | Date | |
---|---|---|---|
bcf7625285 | |||
4a3e79f02e | |||
68e1073858 |
3
bin/update.manifest
Normal file
3
bin/update.manifest
Normal file
@ -0,0 +1,3 @@
|
||||
VERSION=1
|
||||
IMAGE_PATH=https://files.schle.nz/esmp3/firmware.bin
|
||||
IMAGE_MD5=00000000000000000000000000000000
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
#set -e
|
||||
#set -x
|
||||
set -e
|
||||
|
||||
if ! git diff-index --quiet HEAD ; then
|
||||
echo "Git isn't clean. Cant deploy."
|
||||
@ -27,7 +27,7 @@ done <<< "$vers"
|
||||
read -p "Version to generate: " VERSION
|
||||
|
||||
OTA_VERSION=`grep "VERSION=" bin/update.manifest | cut -d"=" -f2`
|
||||
OTA_VERSION=$(( "$OTA_VERSION" + 1 ))
|
||||
OTA_VERSION=$(( $OTA_VERSION + 1 ))
|
||||
|
||||
sed -i.bak "s/#define OTA_VERSION .*/#define OTA_VERSION $OTA_VERSION/" include/config.h include/config.sample.h
|
||||
rm include/config.h.bak include/config.sample.h.bak
|
||||
|
Loading…
Reference in New Issue
Block a user