provide short versions to android

1.2-legacy
Kevin Hester 2021-05-09 10:56:28 +08:00
rodzic 7475e3c105
commit 2e832774a2
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,8 @@
set -e
VERSION=`bin/buildinfo.py`
VERSION=`bin/buildinfo.py long`
SHORT_VERSION=`bin/buildinfo.py short`
BOARDS_ESP32="tlora-v2 tlora-v1 tlora_v1_3 tlora-v2-1-1.6 tbeam heltec tbeam0.7"
#BOARDS_ESP32=tbeam
@ -91,6 +92,7 @@ Generated by bin/buildall.sh -->
<resources>
<string name="cur_firmware_version" translatable="false">$VERSION</string>
<string name="short_firmware_version" translatable="false">$SHORT_VERSION</string>
</resources>
XML

Wyświetl plik

@ -1,7 +1,9 @@
#!/usr/bin/env python3
import configparser
import sys
from readprops import readProps
verObj = readProps('version.properties')
print(f"{verObj['long']}")
propName = sys.argv[1]
print(f"{verObj[propName]}")