programmierhub/scripts/setup-vendor.sh
Stefan Franke 502131f07c VR ProgrammierHub — begehbarer 3D-Lernraum für hybride Programmier-Lehre
Erste lauffähige Fassung: 3D-Raum, Echtzeit-Multiplayer (WebSocket),
Python-IDE via Pyodide im Browser, eigener Arbeitsplatz mit Live-Code-Monitor.
Modularer, self-hostbarer Aufbau (Three.js + Node/Express + ws), ohne CDN-
Abhängigkeit zur Laufzeit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-30 13:35:11 +00:00

24 lines
806 B
Bash
Executable file

#!/usr/bin/env bash
# Lädt die self-gehosteten Frontend-Abhängigkeiten (Three.js + Pyodide) nach public/vendor/.
# Bewusst nicht im Repo eingecheckt: große Binär-/Drittanbieter-Assets.
set -euo pipefail
THREE_VERSION=0.169.0
PYODIDE_VERSION=0.26.4
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
VENDOR="$ROOT/public/vendor"
mkdir -p "$VENDOR/pyodide"
echo "→ Three.js $THREE_VERSION"
curl -fsSL "https://cdn.jsdelivr.net/npm/three@${THREE_VERSION}/build/three.module.js" \
-o "$VENDOR/three.module.js"
echo "→ Pyodide $PYODIDE_VERSION"
for f in pyodide.mjs pyodide.asm.js pyodide.asm.wasm python_stdlib.zip pyodide-lock.json; do
echo " $f"
curl -fsSL "https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/$f" \
-o "$VENDOR/pyodide/$f"
done
echo "✓ Vendor-Assets liegen in $VENDOR"