From 2e832774a23a269944ef11d642f302ec54099c23 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 9 May 2021 10:56:28 +0800 Subject: [PATCH] provide short versions to android --- bin/build-all.sh | 4 +++- bin/buildinfo.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/build-all.sh b/bin/build-all.sh index 6a1cf983..8137745e 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -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 --> $VERSION + $SHORT_VERSION XML diff --git a/bin/buildinfo.py b/bin/buildinfo.py index 1dc5d98e..6b123c9c 100755 --- a/bin/buildinfo.py +++ b/bin/buildinfo.py @@ -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]}")