本文共 2969 字,大约阅读时间需要 9 分钟。
如下所示,这段python代码很简单,工具十分强大,一键多渠道打包工具。
第一步:准备基础的文件
第二步:配置Config.py文件中的属性
# 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"
第三步:直接运行
python MainWalle.py
第四步:修改多渠道配置信息
360 #36091anzhuo # 91安卓anzhuo # 安卓baidu # 百度wandoujia # 豌豆荚xiaoyangdoubi #小杨逗比yingyongbao # 应用宝
主要是注意路径是全路径
# keystore信息# Windows 下路径分割线请注意使用\\转义keystorePath = "D:\\GitHub\\YCWalleHelper\\venv\\Include\\apk\\ycPlayer.jks"keyAlias = "yc"keystorePassword = "19930211"keyPassword = "19930211"
看下面这个截图
如图所示,建议你亲自尝试一下,特别好玩!
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.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.