Closed Richard-Cao closed 7 years ago
如果使用了V2签名,暂时无法进行7zip压缩
On Mar 19, 2017 11:10 PM, "Richard-Cao" notifications@github.com wrote:
更新到1.2.0版本之后,打包完成之后没有7zip的包。 我的配置如下:
andResGuard { // ./gradlew resguard[BuildType | Flavor] mappingFile = null use7zip = true useSign = true keepRoot = false // add
.R.drawable.icon into whitelist. whiteList = [ "com.reading.R.drawable.ic_launcher", "com.reading.R.drawable.app_img", "com.reading.R.drawable.node_modules" ] compressFilePattern = [ ".png", ".jpg", ".jpeg", ".gif", "resources.arsc" ] sevenzip { artifact = 'com.tencent.mm:SevenZip:1.2.0' //在设置sevenzip时, 你只需设置artifact或path. 支持同时设置,总以path的值为优先 //path = "/usr/local/bin/7za" } 请问是什么问题呢?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/139, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYk38JDI6NhKWOL-YQNjWLY1rTx5Nks5rnUV0gaJpZM4MhwuR .
@Richard-Cao 如果你对安装包的大小特别关注,可以在signingConfigs中使用v2SigningEnabled false
来关闭v2签名。
好的,感谢!
更新到1.2.0版本之后,打包完成之后没有7zip的包。 我的配置如下:
请问是什么问题呢?