fix: locate Tauri bundles without pipefail find failure - #32
Conversation
Release packaging exited early when a search root was missing under set -o pipefail; walk the target tree instead.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the macOS release packaging workflow to make Tauri bundle discovery more robust under set -euo pipefail, avoiding failures when previously assumed bundle directories are missing after a successful build.
Changes:
- Reworks
.appdiscovery to search underapps/microbridge-ui/src-tauri/targetand fail with a clearer error if not found. - Reworks
.dmgdiscovery similarly and logs bundle candidates for debugging.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Locate bundles without failing under pipefail when a search root is absent. | ||
| echo "==> bundle tree (debug)" | ||
| find apps/microbridge-ui/src-tauri/target -path '*/bundle/*' \( -name '*.app' -o -name '*.dmg' \) 2>/dev/null | head -50 || true | ||
|
|
| APP="" | ||
| while IFS= read -r candidate; do | ||
| APP="$candidate" | ||
| break | ||
| done < <(find apps/microbridge-ui/src-tauri/target -type d -name 'Microbridge.app' 2>/dev/null || true) | ||
| if [[ -z "$APP" ]]; then | ||
| echo "error: Microbridge.app not found under src-tauri/target" >&2 | ||
| exit 1 | ||
| fi | ||
| echo "Using APP=$APP" |
| DMG="" | ||
| while IFS= read -r candidate; do | ||
| DMG="$candidate" | ||
| break | ||
| done < <(find apps/microbridge-ui/src-tauri/target -type f -name '*.dmg' 2>/dev/null || true) |
Summary
find+pipefailaborted when a bundle search root was missing after a successful signed Tauri buildsrc-tauri/targettree for.app/.dmgand log candidatesTest plan
v0.1.0Made with Cursor