diff --git a/apps/rebreak-native/deploy.sh b/apps/rebreak-native/deploy.sh index 43ba7e7..3d88b66 100755 --- a/apps/rebreak-native/deploy.sh +++ b/apps/rebreak-native/deploy.sh @@ -184,11 +184,20 @@ run_quiet() { RUN_QUIET_I=$((RUN_QUIET_I + 1)) subtitle="" if [[ -f "$logfile" ]]; then + # Primary: meaningful build action (filtered) subtitle=$(tail -20 "$logfile" 2>/dev/null \ | grep -aE '^(Compiling|CompileSwift|CompileC|Linking|Ld|Touch|CodeSign|ProcessProductPackaging|ExtractAppIntentsMetadata|Validate|Archive|GenerateAssetSymbols|CopySwiftLibs|PhaseScriptExecution|> Task|BUILD|\[CP|\[Pods)' \ | tail -1 \ | sed -E 's|.*/||; s|\(.*||' \ | cut -c1-50) + # Fallback: any last non-empty line (so user sees activity during setup/parsing) + if [[ -z "$subtitle" ]]; then + subtitle=$(tail -5 "$logfile" 2>/dev/null \ + | grep -av '^[[:space:]]*$' \ + | tail -1 \ + | sed -E 's|^[[:space:]]+||' \ + | cut -c1-50) + fi fi render_progress "$elapsed" "$expected" "$label" "$subtitle" sleep 0.2