mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
20 lines
617 B
Bash
Executable File
20 lines
617 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SteamFrame FPV — Lanceur VR Natif (Mode Gaming SteamOS / OpenXR Direct sans fenêtre 2D)
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
cd "$DIR"
|
|
|
|
# Bibliothèques locales éventuelles
|
|
if [ -d "$HOME/.local/lib" ]; then
|
|
export LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}"
|
|
fi
|
|
|
|
# Compiler en Release si le binaire n'est pas encore présent
|
|
if [ ! -f "$DIR/target/release/steamframe-fpv" ]; then
|
|
echo "Compilation initiale de SteamFrame FPV en mode Release..."
|
|
cargo build --release
|
|
fi
|
|
|
|
exec "$DIR/target/release/steamframe-fpv" --vr-only "$@"
|