Skip to content

Commit 12bdf8e

Browse files
graycreateclaude
andcommitted
fix: remove AAB dependency for Google Play signed APK download
- Remove AAB artifact download step (not needed) - Remove fallback bundletool generation (focus only on signed APK) - Simplify workflow to only download actual signed APK from Google Play 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0b89f48 commit 12bdf8e

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,7 @@ jobs:
405405
echo "Waiting for Google Play to process and sign the APK..."
406406
sleep 120 # Wait 2 minutes for Google Play to process
407407
408-
- name: Download AAB artifact
409-
uses: actions/download-artifact@v4
410-
with:
411-
name: release-bundle
412-
path: bundle-artifacts/
413-
continue-on-error: true
408+
# AAB artifact not needed for Google Play signed APK download
414409

415410
- name: Download Google Play Signed APK
416411
id: download-apk
@@ -524,46 +519,9 @@ jobs:
524519
echo "found=false" >> $GITHUB_OUTPUT
525520
fi
526521
else
527-
echo "Failed to download Google Play signed APK, falling back to universal APK generation"
522+
echo "Failed to download Google Play signed APK"
528523
cat download_output.txt
529-
530-
# Fallback: Generate universal APK from AAB as before
531-
AAB_PATH=$(find bundle-artifacts -name "*.aab" 2>/dev/null | head -1)
532-
if [ -z "$AAB_PATH" ]; then
533-
echo "No AAB found for fallback, skipping"
534-
echo "found=false" >> $GITHUB_OUTPUT
535-
exit 0
536-
fi
537-
538-
echo "Generating universal APK from AAB as fallback..."
539-
540-
# Download bundletool
541-
curl -L -o bundletool-all.jar https://github.com/google/bundletool/releases/latest/download/bundletool-all.jar
542-
543-
# Create dummy keystore
544-
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey \
545-
-keyalg RSA -keysize 2048 -validity 10000 \
546-
-dname "CN=Android Debug,O=Android,C=US" \
547-
-storepass android -keypass android
548-
549-
# Generate universal APK
550-
java -jar bundletool-all.jar build-apks \
551-
--bundle="$AAB_PATH" \
552-
--output=apks.apks \
553-
--mode=universal \
554-
--ks=debug.keystore \
555-
--ks-pass=pass:android \
556-
--ks-key-alias=androiddebugkey \
557-
--key-pass=pass:android
558-
559-
# Extract APK
560-
unzip -q apks.apks universal.apk
561-
OUTPUT_FILE="v2er-${VERSION_NAME}_google_play_signed.apk"
562-
mv universal.apk "$OUTPUT_FILE"
563-
564-
echo "Generated fallback APK: $OUTPUT_FILE"
565-
echo "apk_path=$OUTPUT_FILE" >> $GITHUB_OUTPUT
566-
echo "found=true" >> $GITHUB_OUTPUT
524+
echo "found=false" >> $GITHUB_OUTPUT
567525
fi
568526
569527
- name: Create Google Play link info

0 commit comments

Comments
 (0)