This commit is contained in:
Proddy
2022-10-04 21:01:23 +02:00
parent 58a0ec9cca
commit e37bbe420c
19 changed files with 221 additions and 134 deletions

View File

@@ -19,7 +19,9 @@ def bin_copy(source, target, env):
app_version = bag.get('app_version')
platform = "ESP32"
chip_target = env.get('PIOENV').upper()
# this breaks the CI so removed
# flash_size = env["PIOENV"].split('_')[1]
# print(env.Dump())
@@ -31,14 +33,12 @@ def bin_copy(source, target, env):
# alternatively take platform from the pio target
# platform = str(target[0]).split(os.path.sep)[2]
print("app version: "+app_version)
print("platform: "+platform)
# print("flash size: "+flash_size)
print("app version: " + app_version)
print("platform: " + platform)
print("chip_target: " + chip_target)
# convert . to _ so Windows doesn't complain
variant = "EMS-ESP-" + app_version.replace(".", "_") + "-" + platform
# variant = "EMS-ESP-" + app_version.replace(".", "_") + "-" + platform + "_" + flash_size
variant = "EMS-ESP-" + chip_target + "-" + app_version.replace(".", "_")
# check if output directories exist and create if necessary
if not os.path.isdir(OUTPUT_DIR):