From 9f15fe19f955b0a29237917bebc0a8aff84dcc95 Mon Sep 17 00:00:00 2001 From: Ethan <108598670+echo-lalia@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:20:19 -0700 Subject: [PATCH] Move and rename firmware.bin (#89) --- tools/compile_firmwares.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/compile_firmwares.py b/tools/compile_firmwares.py index 5561102..bec738f 100644 --- a/tools/compile_firmwares.py +++ b/tools/compile_firmwares.py @@ -32,6 +32,7 @@ CWD = os.getcwd() OG_DIRECTORY = CWD + if SOURCE_PATH is None: SOURCE_PATH = os.path.join(CWD, 'MicroPython', 'ports', 'esp32') if DEVICE_PATH is None: @@ -61,9 +62,17 @@ def main(): subprocess.call(["tools/build_device_bin.sh", device.name]) os.chdir(OG_DIRECTORY) + os.rename( + os.path.join(SOURCE_PATH, f'build-{device.name}', 'firmware.bin'), + os.path.join(OG_DIRECTORY, 'MicroHydra', f'{device.name}.bin'), + ) + + print(f"{bcolors.OKGREEN}Finished making compiled bins.{bcolors.ENDC}") os.chdir(OG_DIRECTORY) + +