在 ant 中使用密码自动签署应用程序 [英] signing applications automatically with password in ant
问题描述
目前,我为所有使用 ANT
的应用程序制定了构建流程.我现在添加了构建 release
并签署应用程序的功能.
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.
目前我有具有正确属性的 ant.properties
.它存在于所有项目中.当我构建项目时,它工作正常.标志,对齐并给我我需要的东西.然而,我们有很多应用程序,它们都是在构建过程中构建的.
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
.
我想知道是否有办法让 ant
为我们输入该密码,或者是否有其他方法可以使用 ant
进行签名?也许我可以在构建过程开始时提供密码,并在每次要求使用时使用该密码.
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.
谢谢
推荐答案
我的 ant.properties 中只有这些行,它会自动签名
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
这篇关于在 ant 中使用密码自动签署应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!