Use a custom platformio py file to always set build version

This commit is contained in:
Kevin Hester
2020-12-10 11:28:15 +08:00
parent a0076eb394
commit b1c30f0650
7 changed files with 41 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import configparser
config = configparser.RawConfigParser()
config.read('version.properties')
version = dict(config.items('VERSION'))
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
print(f"{verStr}")