GithubHelp home page GithubHelp logo

lenkamao / autopackage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aj2722465/autopackage

0.0 1.0 0.0 4.15 MB

Android 一键加固打包(乐固加固+签名+美团渠道包)签名+美团多渠道打包

Java 100.00%

autopackage's Introduction

AutoPackage

一键乐固加固+签名+walle多渠道打包

 实现原理:1->执行assembleProductRelease打release包
          2->乐固对release包进行加固
          3->zipalign 数据结构对齐
          4->apksigner.jar 进行签名
          5->签名后的release包重命名
          6->walle-cli-all.jar 注入渠道信息

第一步:拷贝根目录下的legu文件到自己的项目根目录

第二步:拷贝app下的release.gradle文件到自己项目的modle

第三步:app下的builde.gradle添加:

 apply from: 'release.gradle'
 
 dependencies {
     .....
     //walle多渠道
    implementation 'com.meituan.android.walle:library:1.1.7'
}

第四步:app下的bulide.gradle添加命名规则

 android.applicationVariants.all { variant ->
      variant.outputs.all {
          outputFileName = "atuo-v${variant.versionName}-${productFlavors[0].name}_${releaseTime()}.apk"
      }
 }

第五步:根据自己的项目配置gradle.properties

ALIAS_NAME=autoPackage
ALIAS_PASS=asdf1234
KEY_MODULE_PATH=../../app/autoPackage.jks
KEY_PASS=asdf1234
KEY_PATH=../app/autoPackage.jks

第六步:配置app下的channel文件 填写要打的渠道信息

#打包命令

gradlew clean  
gradlew assemblePackageChannel

最终生成加固签名的渠道包路径:

//多渠道安装包路径
app/build/outputs/release/channels
//压缩包路径
app/build/phjt-channels.zip

#联系方式 email: [email protected]

autopackage's People

Contributors

aj2722465 avatar

Watchers

James Cloos 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.