signing applications automatically with password in ant

余生长醉 提交于 2019-12-18 11:13:12

问题


Currently i have a build process in place for all of our apps using ANT. I am adding the ability to build a release now and sign the apps.

Currently i have the ant.properties with the correct properties. And it is in all the projects. And when i build the projects it works fine. Signs, aligns and gives me what i need. HOWEVER, we have many apps and they are all built in the build process.

So the problem is, the user is having to type the password in at the Please enter keystore password and the Please enter password for alias.

I was wondering if there was a way to get ant to enter that password for us or is there another way to sign using ant that would work? Maybe i could supply the password when the build process starts and just use that password every time it is asked to be used.

Thanks


回答1:


I just have these lines in my ant.properties and it signs automatically

key.store.password=mypasswordOne
key.alias.password=mypasswordTwo
key.store=c:/users/myname/my-release-key.keystore
key.alias=release_alias



回答2:


You can use Ant variables in path definition.

key.store = ${user.home}/.keystore 


来源:https://stackoverflow.com/questions/9932498/signing-applications-automatically-with-password-in-ant

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!