mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-12 08:02:04 +00:00
try to fix CI again
This commit is contained in:
parent
8e2e4f7e6a
commit
99c8df8e7d
@ -2,14 +2,20 @@
|
|||||||
Import("projenv")
|
Import("projenv")
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
config = configparser.RawConfigParser()
|
prefsLoc = projenv["PROJECT_DIR"] + "/version.properties"
|
||||||
config.read(projenv["PROJECT_DIR"] + "/version.properties")
|
print(f"Preferences in {prefsLoc}")
|
||||||
version = dict(config.items('VERSION'))
|
try:
|
||||||
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
config = configparser.RawConfigParser()
|
||||||
|
config.read(prefsLoc)
|
||||||
|
version = dict(config.items('VERSION'))
|
||||||
|
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
||||||
|
except:
|
||||||
|
print("Can't read preferences, using 0.0.0")
|
||||||
|
verStr = "0.0.0"
|
||||||
|
|
||||||
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
||||||
|
|
||||||
# General options that are passed to the C and C++ compilers
|
# General options that are passed to the C and C++ compilers
|
||||||
projenv.Append(CCFLAGS=[
|
projenv.Append(CCFLAGS=[
|
||||||
f"-DAPP_VERSION={verStr}"
|
f"-DAPP_VERSION={verStr}"
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user