build(sim): colour-touch (ui-lvgl) WASM in the solo-sim release zip

- build-solo-sim.yml clones LVGL at the version pinned in
  solo/wio-tracker-l2/platformio.ini and builds the SIM_UI=lvgl sim into
  wasm/lvgl/ of solo-sim-wasm.zip, for the site's device switch.
- build_wasm.sh: LVGL_DIR can be overridden (CI has no .pio libdeps).
- sim_test_set_node_name(): names a sim node, for site screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-09-29 10:18:39 +02:00
co-authored by Claude Opus 5.5
parent e822242660
commit 890ee6533e
3 changed files with 34 additions and 4 deletions
+4 -2
View File
@@ -55,9 +55,11 @@ fi
# Which frontend: SIM_UI=new (default, 128x64 OLED-style ui-new) or
# SIM_UI=lvgl (320x240 touch ui-lvgl, Wio Tracker L2 shape -> web/lvgl.html).
# The lvgl build takes the LVGL 9 sources from PlatformIO's libdeps of the L2
# env, so run `pio run -e Wio_Tracker_L2_companion_solo_lvgl` once first.
# env, so run `pio run -e Wio_Tracker_L2_companion_solo_lvgl` once first, or
# point LVGL_DIR at a checkout of the same version (CI does, see
# .github/workflows/build-solo-sim.yml).
SIM_UI="${SIM_UI:-new}"
LVGL_DIR="$REPO_ROOT/.pio/libdeps/Wio_Tracker_L2_companion_solo_lvgl/lvgl"
LVGL_DIR="${LVGL_DIR:-$REPO_ROOT/.pio/libdeps/Wio_Tracker_L2_companion_solo_lvgl/lvgl}"
if [ "$SIM_UI" = "lvgl" ] && [ ! -f "$LVGL_DIR/lvgl.h" ]; then
echo "error: LVGL sources not found at $LVGL_DIR" >&2
echo "Fetch them first: pio run -e Wio_Tracker_L2_companion_solo_lvgl" >&2