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.
This commit is contained in:
@@ -12,6 +12,7 @@ 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"
|
||||
@@ -24,5 +25,6 @@ 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"
|
||||
|
||||
@@ -50,6 +50,7 @@ $env:PASEO_CORS_ORIGINS = "*"
|
||||
# Configure the app to auto-connect to this daemon on localhost
|
||||
$env:APP_VARIANT = "development"
|
||||
$env:EXPO_PUBLIC_LOCAL_DAEMON = "localhost:6768"
|
||||
$env:EXPO_PUBLIC_PASEO_DEV_BUILD_LABEL = (git branch --show-current).Trim()
|
||||
$env:PASEO_LISTEN = "127.0.0.1:6768"
|
||||
$env:BROWSER = "none"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user