Skip to content

Instantly share code, notes, and snippets.

@edib
Created September 18, 2022 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edib/f6a12542212cf30745379d15d84736a7 to your computer and use it in GitHub Desktop.
Save edib/f6a12542212cf30745379d15d84736a7 to your computer and use it in GitHub Desktop.
from react native to apk by expo and build-tool
╰─🐧 $ eas build --platform android                                                                                                                                                                      

## download aab file from expo account 

# download bundle tool (ask for the latest release)
╰─🐧 $ wget https://github.com/google/bundletool/releases/download/1.11.2/bundletool-all-1.11.2.jar

# create universal mode apks from bundle

╰─🐧 $ java -jar bundletool-all-1.11.2.jar -bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks --mode=universal
    
 # extract it from apks    
╰─🐧 $ unzip -p /MyApp/my_app.apks universal.apk > /MyApp/my_app.apk

# resources
https://stackoverflow.com/questions/53040047/generate-apk-file-from-aab-file-android-app-bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment