以下所示,这段python代码很简单,工具十分强大,一键多渠道打包工具。html
第一步:准备基础的文件python
第二步:配置Config.py文件中的属性android
# keystore信息 # Windows 下路径分割线请注意使用\\转义 keystorePath = "D:\\GitHub\\YCWalleHelper\\venv\\Include\\apk\\ycPlayer.jks" keyAlias = "yc" keystorePassword = "19930211" keyPassword = "19930211"
# 加固后的源文件名(未重签名) # 必需要配置 protectedSourceApkName = "app_release_aligned_signed.apk" # 下面这些能够不用配置,代码中会有默认的值 # 加固后的源文件所在文件夹路径(...path),注意结尾不要带分隔符,默认在此文件夹根目录 protectedSourceApkDirPath = "" # 渠道包输出路径,默认在此文件夹output目录下 channelsOutputFilePath = "" # 渠道名配置文件路径,默认在此文件夹apk目录下 channelFilePath = "" # 额外信息配置文件(绝对路径) # 配置信息示例参看,默认是此文件夹apk目录下 extraChannelFilePath = "" # Android SDK buidtools path , please use above 25.0+ # 必须配置 sdkBuildToolPath = "D:\\Program File\\AndroidSdk\\build-tools\\28.0.3"
第三步:直接运行git
python MainWalle.py
第四步:修改多渠道配置信息程序员
360 #360 91anzhuo # 91安卓 anzhuo # 安卓 baidu # 百度 wandoujia # 豌豆荚 xiaoyangdoubi #小杨逗比 yingyongbao # 应用宝
主要是注意路径是全路径github
# keystore信息 # Windows 下路径分割线请注意使用\\转义 keystorePath = "D:\\GitHub\\YCWalleHelper\\venv\\Include\\apk\\ycPlayer.jks" keyAlias = "yc" keystorePassword = "19930211" keyPassword = "19930211"
看下面这个截图面试
如图所示,建议你亲自尝试一下,特别好玩!express
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.