From 8b4fca2a747542a5185581bc68468e874f6c1c33 Mon Sep 17 00:00:00 2001 From: Me Here Date: Sun, 31 May 2026 20:49:49 -0500 Subject: [PATCH] deploy: serve rust/pm-kit/pm-kit.uf2 (RP2350 Rust firmware download) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copies the built Rust .uf2 to the web root when present, so it can be flashed from the website (alongside the CircuitPython firmware downloads). Conditional — only served if rust/pm-kit/build.sh has produced it. Co-Authored-By: Claude Opus 4.8 (1M context) --- deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy.sh b/deploy.sh index 9f92d6b..4ef1668 100755 --- a/deploy.sh +++ b/deploy.sh @@ -48,6 +48,11 @@ for f in index.html editor.html editor-beta.html player.html teacher.html stage. done cp "$DIST_DIR/embed.js" "$DEST_DIR/embed.js"; echo " embed.js ($(stat -c '%s' "$DEST_DIR/embed.js") bytes)" cp "$DIST_DIR/pico-main.py" "$DEST_DIR/pico-main.py"; echo " pico-main.py ($(stat -c '%s' "$DEST_DIR/pico-main.py") bytes)" # PM_K-1 firmware download +# Rust firmware (RP2350) — served if built via rust/pm-kit/build.sh (gitignored artifact, not in dist/) +if [[ -f "$SRC_DIR/rust/pm-kit/pm-kit.uf2" ]]; then + cp "$SRC_DIR/rust/pm-kit/pm-kit.uf2" "$DEST_DIR/pm-kit.uf2" + echo " pm-kit.uf2 ($(stat -c '%s' "$DEST_DIR/pm-kit.uf2") bytes) # Rust RP2350 firmware (alpha boot-blink)" +fi cp "$DIST_DIR/pm_k1_circuitpy.zip" "$DEST_DIR/pm_k1_circuitpy.zip"; echo " pm_k1_circuitpy.zip ($(stat -c '%s' "$DEST_DIR/pm_k1_circuitpy.zip") bytes)" # PM_K-1 CircuitPython bundle cp "$DIST_DIR/pico-cp-app.py" "$DEST_DIR/pico-cp-app.py"; echo " pico-cp-app.py ($(stat -c '%s' "$DEST_DIR/pico-cp-app.py") bytes)" # served for version reading + reference cp "$DIST_DIR/pico-cp-app.mpy" "$DEST_DIR/pico-cp-app.mpy"; echo " pico-cp-app.mpy ($(stat -c '%s' "$DEST_DIR/pico-cp-app.mpy") bytes)" # precompiled firmware the editor pushes (base64)