Add tool to test locally
This commit is contained in:
1 parent
49d8524597
commit
e99e5bf6b4
7 files changed
+111
-27
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
||||
Reference in new issue
Block a user