aboutsummaryrefslogtreecommitdiff
path: root/run-client.sh
blob: 49ff3e849fb8acdc508b0d77497e90b69dbb2d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CLIENT_BIN="$SCRIPT_DIR/frontend/desktop-client/sources/target/release/beepzone-egui"
CLIENT_SOURCES="$SCRIPT_DIR/frontend/desktop-client/sources"

if [[ ! -f "$CLIENT_BIN" ]]; then
  echo "Error: BeepZone client binary not found at:"
  echo "  $CLIENT_BIN"
  echo ""
  echo "Please build the desktop client first using the setup helper:"
  echo "  ./beepzone-helper.sh"
  exit 1
fi

echo "Starting BeepZone Desktop Client..."
echo "Binary: $CLIENT_BIN"
echo "Working directory: $CLIENT_SOURCES"
echo ""

cd "$CLIENT_SOURCES"
exec ./target/release/beepzone-egui