make-build-folder: read the version without a broken pipe
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m51s
release-gate / verify (push) Successful in 14m47s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 2m52s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 00:31:32 +00:00
co-authored by Claude Opus 5.5
parent b96b1ec195
commit 5cc331ecb7
+1 -1
View File
@@ -17,7 +17,7 @@ DIR=$OUTPUTS/$NAME
mkdir -p "$DIR"
UNSIGNED=orbit-$NAME-aligned-unsigned.apk
"$BT/zipalign" -f -p 4 "$APK" "$DIR/$UNSIGNED"
BADGING=$("$BT/aapt2" dump badging "$DIR/$UNSIGNED" | head -1)
BADGING=$("$BT/aapt2" dump badging "$DIR/$UNSIGNED" 2>/dev/null | grep -m1 "^package:" || true)
VERSION=$(sed -E "s/.*versionName='([^']*)'.*/\1/" <<<"$BADGING"); CODE=$(sed -E "s/.*versionCode='([^']*)'.*/\1/" <<<"$BADGING")
cat > "$DIR/BUILD.txt" <<EOF
name=$NAME