fix: rename custom firmware

- remove revision and repo name from firmware naming convention
This commit is contained in:
ZanzyTHEbar 2023-03-21 10:38:07 +00:00
parent 0b3950dc86
commit 728490875b

View File

@ -105,7 +105,7 @@ def customName(project, version, commit, branch):
s = lambda x: x.replace('"', "")
s = lambda x: x.replace("'", "")
env.Replace(
""" env.Replace(
PROGNAME="%s-%s-%s-%s-%s"
% (
s(defines.get("PIO_SRC_NAM")),
@ -114,6 +114,15 @@ def customName(project, version, commit, branch):
s(defines.get("PIO_SRC_REV")),
s(defines.get("PIO_SRC_BRH")),
)
) """
env.Replace(
PROGNAME="%s-%s-%s"
% (
str(env["PIOENV"]),
s(defines.get("PIO_SRC_TAG")),
s(defines.get("PIO_SRC_BRH")),
)
)
# detect if there is a forward slash in the PROGNAME and replace it with an underscore