Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

channel文件路径 输出文件夹路径 加固后的源文件路径 改成可配置 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ApkResigner.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def getBackslash():
buildToolsPath = config.sdkBuildToolPath + getBackslash()
checkAndroidV2SignaturePath = libPath + "CheckAndroidV2Signature.jar"
walleChannelWritterPath = libPath + "walle-cli-all.jar"
outputFilePath = parentPath + "channels"
channelFilePath = parentPath +"channel"
outputFilePath = config.outputFilePath
channelFilePath = config.channelFilePath
keystorePath = config.keystorePath
keyAlias = config.keyAlias
keystorePassword = config.keystorePassword
keyPassword = config.keyPassword
protectedSourceApkPath = parentPath + config.protectedSourceApkName
protectedSourceApkPath = config.protectedSourceApkPath

zipalignedApkPath = protectedSourceApkPath[0 : -4] + "_aligned.apk"
signedApkPath = zipalignedApkPath[0 : -4] + "_signed.apk"
Expand Down
12 changes: 9 additions & 3 deletions config.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
keystorePassword = "your KeystorePassword"
keyPassword = "your keyPassword"

#加固后的源文件名(未重签名)
protectedSourceApkName = "app-release.encrypted.apk"
#加固后的源文件路径(未重签名)
protectedSourceApkPath = "/Users/mac/downloads/app-release.encrypted.apk"

#Android SDK buidtools path , please use above 25.0+
sdkBuildToolPath = "/Users/mac/Library/Android/sdk/build-tools/25.0.2"
sdkBuildToolPath = "/Users/mac/Library/Android/sdk/build-tools/25.0.2"

#输出文件目录
outputFilePath = "/Users/mac/downloads"

#channel文件路径
channelFilePath = "/Users/mac/Android/pro/prometheus-android/app/channel"