mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
15 lines
394 B
Bash
Executable File
15 lines
394 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SteamFrame FPV Launcher
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
cd "$DIR"
|
|
|
|
# Vérifier si le binaire release existe, sinon le compiler
|
|
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" "$@"
|