make-build-folder: read the version without a broken pipe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user