Mercurial
view infinite_canvas/run_native.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}" APP="$(find "$RUNFILES_ROOT" -path '*/infinite_canvas/dev_bin' -o -path '*/infinite_canvas/app_bin' | head -1)" ICU="$(find "$RUNFILES_ROOT" -path '*/Resources/icudtl.dat' | head -1)" SOLIB="$(find "$RUNFILES_ROOT" -name 'libinfinite_Ucanvas_Slibcanvas.so' | head -1)" if [[ -z "$APP" || -z "$ICU" ]]; then echo "Could not locate the native canvas or CEF runtime." >&2 exit 1 fi CEF_ROOT="$(dirname "$(dirname "$(realpath "$ICU")")")" APP="$(realpath "$APP")" RUNTIME_ROOT="$(dirname "$APP")" CACHE_ROOT="${INFINITE_CANVAS_CEF_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/zenbu/infinite-canvas/cef-151/cache}" mkdir -p "$CACHE_ROOT" if [[ ! -f "$RUNTIME_ROOT/icudtl.dat" ]]; then cp -al "$CEF_ROOT/Release/." "$RUNTIME_ROOT/" 2>/dev/null || cp -a "$CEF_ROOT/Release/." "$RUNTIME_ROOT/" cp -al "$CEF_ROOT/Resources/." "$RUNTIME_ROOT/" 2>/dev/null || cp -a "$CEF_ROOT/Resources/." "$RUNTIME_ROOT/" cp -f "$CEF_ROOT/LICENSE.txt" "$RUNTIME_ROOT/CEF-LICENSE.txt" cp -f "$CEF_ROOT/CREDITS.html" "$RUNTIME_ROOT/CEF-CREDITS.html" fi if [[ -n "$SOLIB" ]]; then export LD_LIBRARY_PATH="$RUNTIME_ROOT:$(dirname "$SOLIB")${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" fi export INFINITE_CANVAS_CEF_CACHE="$CACHE_ROOT" exec "$APP" "$@"