view infinite_canvas/serve.sh @ 278:8d560f50ed4c

Improve infinite canvas interactions and browser chrome Render Lucide icons directly with Raylib, add searchable icon browsing, robust text editing, entity lifecycle animations, z-order-safe input, semantic themes, and animated editable browser controls. Document rendering, pinning, context, and component extension for future agents. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:16:14 -0700
parents b55c22cff335
children
line wrap: on
line source

#!/usr/bin/env bash
set -eu

RUNFILES_ROOT="${RUNFILES_DIR:-$0.runfiles}"
WEB_HTML="$(find "$RUNFILES_ROOT" -path '*/infinite_canvas/web/index.html' -print -quit)"

if [[ -z "$WEB_HTML" ]]; then
  echo "Could not locate the infinite canvas web bundle." >&2
  exit 1
fi

WEB_DIR="$(dirname "$WEB_HTML")"
PORT="${1:-4343}"
echo "Serving http://127.0.0.1:${PORT}/index.html"
exec python3 -m http.server "$PORT" --bind 127.0.0.1 --directory "$WEB_DIR"