首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何向install4j提供密钥文件密码

如何向install4j提供密钥文件密码
EN

Stack Overflow用户
提问于 2020-09-24 09:08:24
回答 1查看 126关注 0票数 1

我已经签署了一个证书,并且我正在尝试用Install4j对exe进行签名。我在上面加了一个密码,是12345678。似乎找到了密钥文件,是的,它是加密的(pw:12345678)。产出如下:

代码语言:javascript
运行
复制
Loading config file C:\Users\alexa\IdeaProjects\downlords-faf-client\downlords-faf-client.install4j------------------------------------------------------------------------------
The private key is encrypted. To avoid manual intervention, set the
"--win-keystore-password" command line option or the 
"winKeystorePassword" gradle property or ant task attribute. 
------------------------------------------------------------------------------
Enter the password for the Windows key store:


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 2 executed, 8 up-to-date
install4j: compilation failed. Reason: null

我已经尝试过在gradle.properties和命令行中设置密码。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-24 10:11:23

设置gradle属性不会将该值传递给install4j编译器,您必须在分级任务上配置该属性。

应该说,错误信息具有误导性。

"winKeystorePassword“级任务属性

而不是

"winKeystorePassword“级属性

这将被修正为8.0.9。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64043172

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档