Giter VIP home page Giter VIP logo

runbuildaab's Introduction

生产aab格式的文件后,为了上传到google play还需要签名的,还有从生成aab到生成可以安装用的apk要花蛮多步骤的。 所以,这里用Python做下自动化简化下步骤

其中bundletool-all-1.13.1.jar是来自于https://github.com/google/bundletool/releases 可以替换成你自己需要的jar 需要配置正确的apksigner环境,举例:/Users/zhou/Library/Android/sdk/build-tools/33.0.0/apksigner

使用方法是:

python build_aab.py --path 'abb file path' --jks_path 'jks file path' --password 'your jks password' --alias 'your jks alias'

或者,在Android项目中的build.gradle,新建一个task,可以替换成自己需要的文件目录

task buildAAB(type: Exec) {
    commandLine 'python3', '../build_aab.py', '--path', "$buildDir/outputs/bundle/*.aab", '--jks_path', 'jks file path', '--password', 'your jks password', ' --alias', 'your jks alias'
}

然后使用下面的命令就可以上传了。

./gradlew buildAAB

本项目地址存放在,https://github.com/SerBad/RunBuildAAB.git

git子模块

可以使用git的submodule方法来把其他git的子模块添加到项目里面去 使用方法是

git submodule add https://github.com/SerBad/RunBuildAAB.git

runbuildaab's People

Contributors

serbad avatar

Stargazers

Youssef Apiwi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.