Giter Site home page Giter Site logo

Comments (3)

GavinCT avatar GavinCT commented on June 30, 2024

考虑到自定义需求各种各样,我们并没有在plugin里提供模版。plugin只针对简单场景
可以写个shell脚本利用walle-cli进行自定义
例如你提到这个需求,可以有两个方案:

  1. 利用plugin生成,然后写个shell把批量生成的apk改成你需要的名字。因为app和channel本身plugin都有,version对于一个版本来说也是固定的,很方便写出来。
  2. 直接利用cli。shell/python获取输入市场列表,针对apk使用cli单个打包的方式,加上你output指定上你输出的信息,然后for循环继续。

from walle.

achellies avatar achellies commented on June 30, 2024

android {
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
output.outputFile.parent,
output.outputFile.name.replace(".apk", "-${variant.versionName}.apk"))
}
}
}
可以配置{app}-{version}.apk,插件默认是在尾部加channel,这样配置后输出文件为 {app}-{version}-{channel}.apk

from walle.

Ruijiao avatar Ruijiao commented on June 30, 2024

渠道名的命名规范怎么以渠道名命名?

from walle.

Related Issues (20)

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.