spiffs version in mooo.com webpage for travis buidls
This commit is contained in:
parent
b81dd7d787
commit
d329189e03
|
|
@ -24,13 +24,23 @@ generate_website_index() {
|
||||||
if [ -z "$TS" ]; then TS=`date`; fi
|
if [ -z "$TS" ]; then TS=`date`; fi
|
||||||
echo "<li><a href=\"devel/$i\">$i</a> ($TS)</li>\n" >> download.html;
|
echo "<li><a href=\"devel/$i\">$i</a> ($TS)</li>\n" >> download.html;
|
||||||
done
|
done
|
||||||
echo "</ul></section></body></html>" >> download.html
|
echo "</ul></section>
|
||||||
|
<br>
|
||||||
|
<p>Last two letters of version number indicate SPIFFS file system version. If the first (upper-case)
|
||||||
|
letter has changed, then this version is incompabible with prevision versions and you have to flash
|
||||||
|
the full image. If the second (lower-case) letter has changed, then this version has some changes
|
||||||
|
(e.g. internal web page layout, LCD/TFT display layout) in the file system which you will not get with
|
||||||
|
a code-only (OTA or flashing update.bin) update, but it should not break anything.</p></body></html>" >> download.html
|
||||||
git add download.html
|
git add download.html
|
||||||
git commit --amend --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
git commit --amend --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
||||||
}
|
}
|
||||||
commit_website_files() {
|
commit_website_files() {
|
||||||
BRANCH=$TRAVIS_BRANCH
|
BRANCH=$TRAVIS_BRANCH
|
||||||
VERSION=`cat RX_FSK/version.h | tail -1 | egrep -o '".*"' | sed 's/"//g' | sed 's/ /_/g'`
|
VERSION=`cat RX_FSK/version.h | grep version_id | egrep -o '".*"' | sed 's/"//g' | sed 's/ /_/g'`
|
||||||
|
FSMAJOR=`cat RX_FSK/version.h | grep SPIFFS_MAJOR | perl -e '$_=<>;print /=(.*);/?chr($1+64):""'`
|
||||||
|
FSMINOR=`cat RX_FSK/version.h | grep SPIFFS_MINOR | perl -e '$_=<>;print /=(.*);/?$1:""'`
|
||||||
|
VERSION=$VERSRION-$FSMAJOR$MSMINOR
|
||||||
|
|
||||||
MYPATH=$PWD
|
MYPATH=$PWD
|
||||||
echo "On branch $BRANCH"
|
echo "On branch $BRANCH"
|
||||||
echo "Version $VERSION"
|
echo "Version $VERSION"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,4 @@
|
||||||
const char *version_name = "rdzTTGOsonde";
|
const char *version_name = "rdzTTGOsonde";
|
||||||
const char *version_id = "devel20191102";
|
const char *version_id = "devel20191102";
|
||||||
|
const int SPIFFS_MAJOR=2;
|
||||||
|
const int SPIFFS_MINOR=1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue