如何输入install4j密钥文件密码

时间:2020-09-24 09:08:24

标签: gradle install4j

我已经自签名了证书,我正在尝试使用Install4j签名exe。我在上面放了一个密码12345678。似乎找到了密钥文件,是的,它已加密(pw:12345678)。输出为:

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中和通过命令行设置密码。

enter image description here enter image description here enter image description here

1 个答案:

答案 0 :(得分:1)

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

该错误消息具有误导性,应该说

“ winKeystorePassword” gradle任务属性

代替

“ winKeystorePassword” gradle属性

此问题将在8.0.9中修复。

相关问题