diff --git a/deploy/Dockerfile b/deploy/Dockerfile index db4623f..bbbbeb1 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -10,7 +10,7 @@ USER arduino # Install Arduino CLI RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh && \ - /app/bin/arduino-cli core install arduino:avr arduino:esp32 + /app/bin/arduino-cli core install arduino:avr arduino:esp32 arduino:mbed_nano ENV ARDUINO_CLI_PATH=/app/bin/arduino-cli COPY --chown=arduino:arduino requirements.txt /app/requirements.txt diff --git a/main.py b/main.py index b4044a5..0442491 100644 --- a/main.py +++ b/main.py @@ -89,11 +89,7 @@ async def _compile_sketch(sketch: Sketch) -> dict[str, str]: async with aiofiles.open(f"{sketch_path}{file[1]}", "rb") as _f: file_result[file[0]] = await _f.read() - binary_files = [ - ("bootloader", ".bootloader.bin"), - ("partitions", ".partitions.bin"), - ("sketch", ".bin"), - ] + binary_files = [("sketch", ".bin"), ("sketch", ".uf2")] for file in binary_files: if path.exists(f"{sketch_path}{file[1]}"): async with aiofiles.open(f"{sketch_path}{file[1]}", "rb") as _f: