diff --git a/ApkResigner.py b/ApkResigner.py old mode 100644 new mode 100755 index f932947..ce4899e --- a/ApkResigner.py +++ b/ApkResigner.py @@ -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" diff --git a/config.py b/config.py old mode 100644 new mode 100755 index 51e35fb..6b2b22b --- a/config.py +++ b/config.py @@ -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" \ No newline at end of file +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" \ No newline at end of file