1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

Update the script for firmware production

This commit is contained in:
Bertrand Songis 2019-04-19 11:58:26 +02:00
parent a2b5f1d11b
commit 0fe89c5dd9

View file

@ -39,7 +39,7 @@ def build(board, srcdir):
suffix = "" if index == 0 else "_%d" % index
filename = "output/firmware_%s_%s%s.bin" % (board.lower(), timestamp(), suffix)
if not os.path.exists(filename):
os.rename("build/firmware.bin", "output/firmware_%s_%s.bin" % (board.lower(), timestamp()))
os.rename("build/firmware.bin", filename)
break
index += 1
shutil.rmtree("build")