Files
Mohamed Boudra 917e39495b Show the source branch on development builds (#3216)
Development web and Electron builds now show their source branch in the expanded sidebar, including a branch icon and safe truncation. Dev launchers inject the label at build time; production builds remain unchanged.
2026-08-11 14:18:06 +02:00

31 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
export PATH="$ROOT_DIR/node_modules/.bin:$PATH"
source "$SCRIPT_DIR/dev-home.sh"
export PASEO_LISTEN="${PASEO_LISTEN:-127.0.0.1:6768}"
configure_dev_paseo_home
EXPO_PORT="${EXPO_PORT:-8081}"
DAEMON_ENDPOINT="$(resolve_dev_daemon_endpoint)"
DEV_BUILD_LABEL="$(git -C "$ROOT_DIR" branch --show-current 2>/dev/null || true)"
echo "══════════════════════════════════════════════════════"
echo " Paseo App Dev"
echo "══════════════════════════════════════════════════════"
echo " Metro: http://localhost:${EXPO_PORT}"
echo " Daemon: ${DAEMON_ENDPOINT}"
echo " Home: ${PASEO_HOME}"
echo "══════════════════════════════════════════════════════"
exec cross-env \
BROWSER="${BROWSER:-none}" \
APP_VARIANT=development \
EXPO_PUBLIC_PASEO_DEV_BUILD_LABEL="$DEV_BUILD_LABEL" \
EXPO_PUBLIC_LOCAL_DAEMON="$DAEMON_ENDPOINT" \
npm run start:expo --workspace=@getpaseo/app -- --port "$EXPO_PORT"