以下所示,這段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.