Skip to content

not support aab bundle in make.sh #33

Description

@atomicra

Is it possible to add an option to build in .aab format? If instead of try "./gradlew assembleRelease --no-daemon --quiet" in apk() make.sh we use try "./gradlew bundleRelease --no-daemon --quiet", then the code would look like this:

bundle() {
    if [ ! -f "app/my-release-key.jks" ]; then
        error "Keystore file not found. Run './make.sh keygen' first"
    fi

    rm -f app/build/outputs/bundle/release/app-release.aab

    info "Building Android App Bundle (AAB)..."
    try "./gradlew bundleRelease --no-daemon --quiet"

    if [ -f "app/build/outputs/bundle/release/app-release.aab" ]; then
        log "AAB successfully built and signed"
        try "cp app/build/outputs/bundle/release/app-release.aab '$appname.aab'"
        echo -e "${BOLD}----------------"
        echo -e "Final AAB copied to: ${GREEN}$appname.aab${NC}"
        echo -e "Size: ${BLUE}$(du -h app/build/outputs/bundle/release/app-release.aab | cut -f1)${NC}"
        echo -e "Package: ${BLUE}com.${appname}.webtoapk${NC}"
        echo -e "App name: ${BLUE}$(grep -o 'app_name">[^<]*' app/src/main/res/values/strings.xml | cut -d'>' -f2)${NC}"
        echo -e "URL: ${BLUE}$(grep 'String mainURL' app/src/main/java/com/$appname/webtoapk/*.java | cut -d'"' -f2)${NC}"
        echo -e "${BOLD}----------------${NC}"
    else
        error "Build failed"
    fi
}

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions