#!/usr/bin/env bash # Lance l'application sur le PC avec qmlscene (Qt 5) et libfbxqml. # Usage : tools/run-local.sh [--fullscreen] set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" LIBFBXQML="${LIBFBXQML:-$ROOT/../libfbxqml}" QMLSCENE="${QMLSCENE:-$(command -v qmlscene || echo /usr/lib/qt5/bin/qmlscene)}" if [ ! -d "$LIBFBXQML/fbx" ]; then echo "libfbxqml introuvable : git clone https://github.com/fbx/libfbxqml.git \"$LIBFBXQML\"" >&2 exit 1 fi if [ "${1:-}" = "--fullscreen" ]; then exec "$QMLSCENE" -I "$LIBFBXQML" "$ROOT/Jellyfin.qml" fi exec "$QMLSCENE" -I "$LIBFBXQML" "$ROOT/tools/preview.qml"