https://github.com/nukc/wallechannelmaker
解决应用加固导致 Walle 渠道信息失效的自动化脚本工具
https://github.com/nukc/wallechannelmaker
Last synced: 3 months ago
JSON representation
解决应用加固导致 Walle 渠道信息失效的自动化脚本工具
- Host: GitHub
- URL: https://github.com/nukc/wallechannelmaker
- Owner: nukc
- Created: 2019-10-10T09:54:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T10:27:04.000Z (about 6 years ago)
- Last Synced: 2025-08-24T13:44:02.207Z (5 months ago)
- Language: Python
- Size: 502 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WalleChannelMaker
> ```
> 解决应用加固导致 Walle 渠道信息失效的自动化脚本工具
> ```
## Intention
用了 [ProtectedApkResignerForWalle](https://github.com/Jay-Goo/ProtectedApkResignerForWalle),但对于自己的需求过于麻烦,动动手解决繁琐。
## Usage
把 `channel.text` `channelmaker.py` `walle-cli-all.jar` 3个文件拷贝到 app 项目根目录下
- `channel.text` 定义渠道信息,一行一个
- `walle-cli-all.jar` 为 walle 渠道打包 CLI 工具
- `channelmaker.py` 使用之前,需要修改此文件里的几个变量
- ```python
# 如下几个变量需要自己填写
zipalign = "zipalign"
apksigner = "apksigner"
keystore = "xxx.jks"
key_alias = "xx"
keystore_password = "xx"
key_password = "xxx"
walle_cli = "walle-cli-all.jar"
```
准备就绪后,可直接执行 `channelmaker.py` ,这样会对项目下 `app/build/outputs/apk` 里的除 debug 的 apk 进行打包,包括进行了 `productFlavors` 配置打包的。
如果需要单独对某个 `productFlavors` 进行渠道打包,加参数 `--flavor=` :
```sh
channelmaker.py --flavor=google
```