Skip to content

Commit

Permalink
Add bundletool install
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Jan 10, 2025
1 parent 6df8eaf commit 07fe4b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ jobs:
op read op://Mobile-Deploy-CI/firebase.json/firebase.json --force --out-file ./firebase.json
op read op://Mobile-Deploy-CI/upload-key.keystore/upload-key.keystore --force --out-file ./upload-key.keystore
op read op://Mobile-Deploy-CI/android-fastlane-json-key.json/android-fastlane-json-key.json --force --out-file ./android-fastlane-json-key.json
# Copy the keystore to the Android directory for Fullstory
cp ./upload-key.keystore Mobile-Expensify/Android
Expand Down Expand Up @@ -233,8 +232,11 @@ jobs:
# BROWSERSTACK: ${{ secrets.BROWSERSTACK }}

- name: Generate APK from AAB
run: |
bundletool build-apks --bundle=${{ env.aabPath }} --output=Expensify.apks \
run: |
json=$(curl -s https://api.github.com/repos/google/bundletool/releases/latest)
downloadUrl=$(echo $json | jq -r ".assets | .[].browser_download_url")
curl $downloadUrl -4 -sL -o 'bundletool.jar'
java -jar bundletool.jar build-apks --bundle=${{ env.aabPath }} --output=Expensify.apks \
--mode=universal \
--ks=upload-key.keystore \
--ks-pass=${{ steps.load-credentials.outputs.ANDROID_UPLOAD_KEYSTORE_PASSWORD }} \
Expand Down

0 comments on commit 07fe4b8

Please sign in to comment.